summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/legacy/err.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/legacy/err.c b/src/legacy/err.c
index 7b167b36..0d6ab524 100644
--- a/src/legacy/err.c
+++ b/src/legacy/err.c
@@ -8,8 +8,11 @@ extern char *__progname;
void vwarn(const char *fmt, va_list ap)
{
fprintf (stderr, "%s: ", __progname);
- if (fmt) vfprintf(stderr, fmt, ap);
- perror("");
+ if (fmt) {
+ vfprintf(stderr, fmt, ap);
+ fputs (": ", stderr);
+ }
+ perror(0);
}
void vwarnx(const char *fmt, va_list ap)