mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
fix invalid memory write
This commit is contained in:
1 parent
0b59afec56
commit
a600df073a
4 files changed
+21
-3
No files matched your search
@@ -25,6 +25,7 @@ Buf *buf_sprintf(const char *format, ...) {
|
||||
}
|
||||
|
||||
void buf_appendf(Buf *buf, const char *format, ...) {
|
||||
assert(buf->list.length);
|
||||
va_list ap, ap2;
|
||||
va_start(ap, format);
|
||||
va_copy(ap2, ap);
|
||||
|
||||
Reference in new issue
Block a user