projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
all printf variants: fix argument type handling for %c and %lc
[musl]
/
src
/
stdio
/
open_memstream.c
diff --git
a/src/stdio/open_memstream.c
b/src/stdio/open_memstream.c
index
ee83423
..
600d277
100644
(file)
--- a/
src/stdio/open_memstream.c
+++ b/
src/stdio/open_memstream.c
@@
-2,6
+2,8
@@
#include <errno.h>
#include <limits.h>
#include <string.h>
+#include <stdlib.h>
+#include "libc.h"
struct cookie {
char **bufp;
@@
-89,6
+91,7
@@
FILE *open_memstream(char **bufp, size_t *sizep)
f->f.write = ms_write;
f->f.seek = ms_seek;
f->f.close = ms_close;
+ f->f.mode = -1;
if (!libc.threaded) f->f.lock = -1;