diff options
Diffstat (limited to 'userland/libc/stdio/fputs.c')
-rw-r--r-- | userland/libc/stdio/fputs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/userland/libc/stdio/fputs.c b/userland/libc/stdio/fputs.c index 1b70c66..5570693 100644 --- a/userland/libc/stdio/fputs.c +++ b/userland/libc/stdio/fputs.c @@ -2,8 +2,10 @@ int fputs(const char *s, FILE *stream) { const char *b = s; - for (; *s; s++) - if (0 == fwrite(s, 1, 1, stream)) + for (; *s; s++) { + if (0 == fwrite(s, 1, 1, stream)) { return EOF; + } + } return s - b; } |