diff options
Diffstat (limited to 'sqlite.zig')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -1282,7 +1282,7 @@ pub fn Iterator(comptime Type: type) type { | |||
| 1282 | const sentinel = @as(*const ptr_info.child, @ptrCast(sentinel_ptr)).*; | 1282 | const sentinel = @as(*const ptr_info.child, @ptrCast(sentinel_ptr)).*; |
| 1283 | 1283 | ||
| 1284 | const slice = try allocator.alloc(u8, data.len + 1); | 1284 | const slice = try allocator.alloc(u8, data.len + 1); |
| 1285 | mem.copy(u8, slice, data); | 1285 | mem.copyForwards(u8, slice, data); |
| 1286 | slice[data.len] = sentinel; | 1286 | slice[data.len] = sentinel; |
| 1287 | 1287 | ||
| 1288 | return slice[0..data.len :sentinel]; | 1288 | return slice[0..data.len :sentinel]; |