diff options
author | Manuel Novoa III <mjn3@codepoet.org> | 2002-06-11 21:19:41 +0000 |
---|---|---|
committer | Manuel Novoa III <mjn3@codepoet.org> | 2002-06-11 21:19:41 +0000 |
commit | 6af59d0d232e33b2be61a6dc96e7918993dd28d5 (patch) | |
tree | 7b2b6409a0b71124ac88ef30636e23bc89dc0958 /libc/stdio/printf.c | |
parent | 3ec9b390db1a6d1264c32dfae8db53f208c26397 (diff) |
Revert Erik's patch to vasprintf and fix the real issue.
The writer for the stream returned by open_memstream was supposed to
keep the buffer nul-terminated. I apparently left out a statement.
Diffstat (limited to 'libc/stdio/printf.c')
-rw-r--r-- | libc/stdio/printf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libc/stdio/printf.c b/libc/stdio/printf.c index e311a4f87..92b5b5956 100644 --- a/libc/stdio/printf.c +++ b/libc/stdio/printf.c @@ -1451,7 +1451,6 @@ int vasprintf(char **__restrict buf, const char * __restrict format, return -1; } rv = vfprintf(f, format, arg); - if (rv >= 0) fputc('\0', f); fclose(f); if (rv < 0) { free(*buf); |