* kill (getsig): Avoid buffer overflow when generating a signal name.

* strace.cc (handle_output_debug_string): Make error a little more specific.
This commit is contained in:
Christopher Faylor
2005-02-27 03:03:19 +00:00
parent 1a9a235a5a
commit 78d9eaa5ea
3 changed files with 9 additions and 3 deletions

View File

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