summaryrefslogtreecommitdiff
path: root/src/stdio/fputs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/fputs.c')
-rw-r--r--src/stdio/fputs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/fputs.c b/src/stdio/fputs.c
index c4d32dec..87523b43 100644
--- a/src/stdio/fputs.c
+++ b/src/stdio/fputs.c
@@ -7,6 +7,7 @@
int fputs(const char * restrict s, FILE * restrict stream)
{
SIGNAL_SAFE(0);
+ ASSERT_STREAM(stream, ORIENT_BYTE, OP_OUTPUT);
ASSERT_NOOVERLAP(s, strlen(s), stream, sizeof(*stream));
flockfile(stream);