diff --git a/lang/cem/libcc.ansi/stdio/perror.c b/lang/cem/libcc.ansi/stdio/perror.c index 70055e6fb..962d4bc93 100644 --- a/lang/cem/libcc.ansi/stdio/perror.c +++ b/lang/cem/libcc.ansi/stdio/perror.c @@ -10,7 +10,10 @@ void perror(const char *s) { - if (s && *s) - (void) fprintf(stderr,"%s: ", s); - (void) fprintf(stderr,"%s\n", strerror(errno)); + if (s && *s) { + (void) fputs(s, stderr); + (void) fputs(": ", stderr); + } + (void) fputs(strerror(errno), stderr); + (void) fputs("\n", stderr); }