diff options
Diffstat (limited to 'src/stdio/fprintf_s.c')
| -rw-r--r-- | src/stdio/fprintf_s.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stdio/fprintf_s.c b/src/stdio/fprintf_s.c index 2e5ed670..83843f78 100644 --- a/src/stdio/fprintf_s.c +++ b/src/stdio/fprintf_s.c @@ -1,11 +1,13 @@ #include <stdio.h> #include <stdarg.h> +#include <string.h> #include "_stdio.h" /** write formatted output to a file stream **/ int fprintf_s(FILE * restrict stream, const char * restrict format, ...) { SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(stream, sizeof(*stream), format, strlen(format)); int retval; va_list ap; va_start(ap, format); |
