projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
make sem_wait and sem_timedwait interruptible by signals
[musl]
/
src
/
stdio
/
setvbuf.c
diff --git
a/src/stdio/setvbuf.c
b/src/stdio/setvbuf.c
index
b6b9b01
..
06ea296
100644
(file)
--- a/
src/stdio/setvbuf.c
+++ b/
src/stdio/setvbuf.c
@@
-14,7
+14,7
@@
int setvbuf(FILE *restrict f, char *restrict buf, int type, size_t size)
f->buf_size = 0;
} else {
if (buf && size >= UNGET) {
- f->buf = (void *)
buf
;
+ f->buf = (void *)
(buf + UNGET)
;
f->buf_size = size - UNGET;
}
if (type == _IOLBF && f->buf_size)