* kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't pad

signal name with spaces.
This commit is contained in:
Christopher Faylor 2005-03-08 04:06:26 +00:00
parent a593a4c5e3
commit 4534561877
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2005-03-07 Christopher Faylor <cgf@timesys.com>
* kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't
pad signal name with spaces.
2005-03-07 Corinna Vinschen <corinna@vinschen.de>
* strace.cc (handle_output_debug_string): Fix compiler warning.
@ -19,7 +24,7 @@
2005-02-26 Christopher Faylor <cgf@timesys.com>
* kill (getsig): Avoid buffer overflow when generating a signal name.
* kill.cc (getsig): Avoid buffer overflow when generating a signal name.
* strace.cc (handle_output_debug_string): Make error a little more specific.

View File

@ -87,7 +87,7 @@ getsig (const char *in_sig)
sig = in_sig;
else
{
sprintf (buf, "SIG%-20.20s", in_sig);
sprintf (buf, "SIG%-.20s", in_sig);
sig = buf;
}
intsig = strtosigno (sig) ?: atoi (in_sig);