summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/misc/getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc/getopt.c b/src/misc/getopt.c
index 92179830..8290aef7 100644
--- a/src/misc/getopt.c
+++ b/src/misc/getopt.c
@@ -17,9 +17,9 @@ void __getopt_msg(const char *a, const char *b, const char *c, size_t l)
FILE *f = stderr;
b = __lctrans_cur(b);
flockfile(f);
- fwrite(a, strlen(a), 1, f)
+ fputs(a, f)>=0
&& fwrite(b, strlen(b), 1, f)
- && fwrite(c, l, 1, f)
+ && fwrite(c, 1, l, f)==l
&& putc('\n', f);
funlockfile(f);
}