summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 9a59135..7aceac9 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -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];