Skip to content

Commit f08cecd

Browse files
author
rodolpheh
committed
Enforce null-terminated url
1 parent fae316e commit f08cecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zemscripten.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ pub fn Wget(url: []const u8, file: []const u8) c_int {
206206
return emscripten_wget(url.ptr, file.ptr);
207207
}
208208

209-
pub fn WgetData(url: []const u8) ![]u8 {
209+
pub fn WgetData(url: [:0]const u8) ![]u8 {
210210
var buffer_ptr: *anyopaque = undefined;
211211
var len: c_int = undefined;
212212
var err: c_int = undefined;

0 commit comments

Comments
 (0)