summaryrefslogtreecommitdiff
path: root/src/stdio/setvbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/setvbuf.c')
-rw-r--r--src/stdio/setvbuf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/setvbuf.c b/src/stdio/setvbuf.c
index a6f37fb0..b400b266 100644
--- a/src/stdio/setvbuf.c
+++ b/src/stdio/setvbuf.c
@@ -8,6 +8,7 @@
int setvbuf(FILE *stream, char *buf, int mode, size_t size)
{
SIGNAL_SAFE(0);
+ ASSERT_NOOVERLAP(stream, sizeof(*stream), buf, size);
flockfile(stream);