diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | stdio-common/psignal.c | 12 |
2 files changed, 12 insertions, 5 deletions
@@ -1,3 +1,8 @@ +2004-06-14 Andreas Schwab <schwab@suse.de> + + * stdio-common/psignal.c (psignal): Don't use BUF when asprintf + failed. + 2004-06-15 Steven Munroe <sjmunroe@us.ibm.com> * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix pasto diff --git a/stdio-common/psignal.c b/stdio-common/psignal.c index 3a75224..2e6588c 100644 --- a/stdio-common/psignal.c +++ b/stdio-common/psignal.c @@ -64,12 +64,14 @@ psignal (int sig, const char *s) else (void) fprintf (stderr, "%s%s%s\n", s, colon, _("Unknown signal")); } - - if (_IO_fwide (stderr, 0) > 0) - (void) __fwprintf (stderr, L"%s", buf); else - (void) fputs (buf, stderr); + { + if (_IO_fwide (stderr, 0) > 0) + (void) __fwprintf (stderr, L"%s", buf); + else + (void) fputs (buf, stderr); - free (buf); + free (buf); + } } } |