* stdio-common/psignal.c (psignal): Don't use BUF when asprintf

failed.
This commit is contained in:
Roland McGrath 2004-06-15 20:04:37 +00:00
parent e1ad4c533a
commit 6d00189e10
2 changed files with 12 additions and 5 deletions

View File

@ -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

View File

@ -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);
}
}
}