Skip to content

Commit 0e57599

Browse files
kazuklaysakura
andauthored
Update src/lib.rs
Co-authored-by: Sho Nakatani <[email protected]>
1 parent 03b3ecc commit 0e57599

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ pub unsafe extern "C" fn spring_column_text(
355355
with_catch(|| row.get_not_null_by_index(i_col as usize));
356356
match result {
357357
Ok(v) => {
358-
strcpy(&v, out, out_len);
359-
v.len() as c_int
358+
let v_len = strcpy(&v, out, out_len);
359+
v_len as c_int
360360
}
361361
Err(e) => e as c_int,
362362
}

0 commit comments

Comments
 (0)