svn commit: r240704 - head/lib/libc/string

Jilles Tjoelker jilles at FreeBSD.org
Wed Sep 19 19:21:23 UTC 2012


Author: jilles
Date: Wed Sep 19 19:21:22 2012
New Revision: 240704
URL: http://svn.freebsd.org/changeset/base/240704

Log:
  strsignal(): Do not append signal numbers to messages for known signals.
  
  Messages for known signals looked like "Terminated: 15" instead of
  "Terminated".

Modified:
  head/lib/libc/string/strsignal.c

Modified: head/lib/libc/string/strsignal.c
==============================================================================
--- head/lib/libc/string/strsignal.c	Wed Sep 19 19:16:08 2012	(r240703)
+++ head/lib/libc/string/strsignal.c	Wed Sep 19 19:21:22 2012	(r240704)
@@ -120,7 +120,6 @@ strsignal(int num)
 			UPREFIX,
 #endif
 			sizeof(sig_ebuf));
-	}
 
 	signum = num;
 	if (num < 0)
@@ -143,6 +142,7 @@ strsignal(int num)
 			break;
 	}
 	*p = '\0';
+	}
 
 #if defined(NLS)
 	catclose(catd);


More information about the svn-src-all mailing list