From db616c2d5cff8477336b318d889e02112fe97f9a Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 28 May 2024 12:34:30 -0400 Subject: handle stream orientation behavior --- src/stdio/fputs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/stdio/fputs.c') 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); -- cgit v1.2.1