projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
simplify and optimize FILE lock handling
[musl]
/
src
/
stdio
/
vsnprintf.c
diff --git
a/src/stdio/vsnprintf.c
b/src/stdio/vsnprintf.c
index
ff792e1
..
5d3f0c5
100644
(file)
--- a/
src/stdio/vsnprintf.c
+++ b/
src/stdio/vsnprintf.c
@@
-17,7
+17,7
@@
int vsnprintf(char *s, size_t n, const char *fmt, va_list ap)
f.write = sn_write;
f.buf_size = 1;
f.buf = buf;
- f.
owner
= -1;
+ f.
lock
= -1;
if (n > INT_MAX) {
errno = EOVERFLOW;
return -1;