Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-02-27 06:03:19 +0300
committerChristopher Faylor <me@cgf.cx>2005-02-27 06:03:19 +0300
commit78d9eaa5eac0e037206b481c4c5512936d53524d (patch)
tree6962497b9bfc589173ac9a8bc2637b1bf6726edc /winsup/utils/strace.cc
parent1a9a235a5af29c55f5fe84745b595f0d247f888e (diff)
* kill (getsig): Avoid buffer overflow when generating a signal name.
* strace.cc (handle_output_debug_string): Make error a little more specific.
Diffstat (limited to 'winsup/utils/strace.cc')
-rw-r--r--winsup/utils/strace.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/utils/strace.cc b/winsup/utils/strace.cc
index 747880cbe..998350c9c 100644
--- a/winsup/utils/strace.cc
+++ b/winsup/utils/strace.cc
@@ -446,8 +446,8 @@ handle_output_debug_string (DWORD id, LPVOID p, unsigned mask, FILE *ofile)
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;
}