* strace.cc (handle_output_debug_string): Make error a little more specific.
+2005-02-26 Christopher Faylor <cgf@timesys.com>
+
+ * kill (getsig): Avoid buffer overflow when generating a signal name.
+
+ * strace.cc (handle_output_debug_string): Make error a little more specific.
+
2005-02-23 Joshua Daniel Franklin <joshuadfranklin@yahoo.com>
* cygpath.cc (usage): Clarify help output to indicate acceptance
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);
if (!WriteProcessMemory (hchild, (LPVOID) n, &new_flag,
sizeof (new_flag), &nbytes))
error (0,
- "couldn't write strace flag to subprocess, windows error %d",
- GetLastError ());
+ "couldn't write strace flag to subprocess at %p, windows error %d",
+ n, GetLastError ());
return;
}