From 5d1bdda9fabb6e86cff390cb1ed84a8d4c40955b Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Thu, 12 Nov 1987 13:00:24 +0000 Subject: [PATCH] Don't print ": " if progname is somehow trashed. --- src/print.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/print.c b/src/print.c index 5a995886..8fb8b6b9 100644 --- a/src/print.c +++ b/src/print.c @@ -31,7 +31,7 @@ #ifndef lint static char *moduleid = - "@(#)$Header: /home/glen/git/file/cvs/file/src/print.c,v 1.9 1987/11/06 21:29:50 ian Exp $"; + "@(#)$Header: /home/glen/git/file/cvs/file/src/print.c,v 1.10 1987/11/12 13:00:24 ian Exp $"; #endif /* lint */ #define MAXSTR 500 @@ -81,10 +81,11 @@ char *f, *a; int myerrno; myerrno = errno; - if (progname != NULL) + if (progname != NULL) { (void) fputs(progname, stderr); - (void) putc(':', stderr); - (void) putc(' ', stderr); + (void) putc(':', stderr); + (void) putc(' ', stderr); + } (void) fprintf(stderr, f, a); if (myerrno > 0 && myerrno < sys_nerr) (void) fprintf(stderr, " (%s)", sys_errlist[myerrno]); -- 2.50.1