We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 925b88f commit 9417b92Copy full SHA for 9417b92
src/Package.zig
@@ -428,7 +428,7 @@ const FetchLocation = union(SourceType) {
428
var uri_str = std.ArrayList(u8).init(gpa);
429
defer uri_str.deinit();
430
try uri.format("+/", .{}, uri_str.writer());
431
- const uri_str_z = try std.cstr.addNullByte(gpa, uri_str.items);
+ const uri_str_z = try gpa.dupeZ(uri_str.items);
432
defer gpa.free(uri_str_z);
433
434
var buf: [std.os.windows.MAX_PATH:0]u8 = undefined;
0 commit comments