diff --git a/winsup/utils/ChangeLog b/winsup/utils/ChangeLog index 44a5d12dc..599f39d4e 100644 --- a/winsup/utils/ChangeLog +++ b/winsup/utils/ChangeLog @@ -1,3 +1,8 @@ +2005-03-07 Christopher Faylor + + * kill.cc (getsig): Rectify bug introduced by 2005-02-26 change. Don't + pad signal name with spaces. + 2005-03-07 Corinna Vinschen * strace.cc (handle_output_debug_string): Fix compiler warning. @@ -19,7 +24,7 @@ 2005-02-26 Christopher Faylor - * 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. diff --git a/winsup/utils/kill.cc b/winsup/utils/kill.cc index 071516cef..2ff41545c 100644 --- a/winsup/utils/kill.cc +++ b/winsup/utils/kill.cc @@ -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);