From b11b996ab664a8f09b63c1352400ba227cb93253 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 13 May 1997 06:43:41 +0000 Subject: Caseblind comparison of names, more explicitness about Kerberos. svn path=/trunk/; revision=988 --- report.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'report.c') diff --git a/report.c b/report.c index 1e653646..f5c2110d 100644 --- a/report.c +++ b/report.c @@ -224,8 +224,15 @@ error (status, errnum, message, va_alist) fprintf (stderr, message, a1, a2, a3, a4, a5, a6, a7, a8); #endif - if (errnum) - fprintf (stderr, ": %s", strerror (errnum)); + if (errnum) { + char *tmps = strerror(errnum); + if (tmps) { + fprintf (stderr, ": %s", tmps); + } + else { + fprintf (stderr, ": Error %d", errnum); + } + } putc ('\n', stderr); fflush (stderr); } -- cgit v1.2.3