diff options
-rw-r--r-- | debug/segfault.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/segfault.c b/debug/segfault.c index 0a6be8b..1873022 100644 --- a/debug/segfault.c +++ b/debug/segfault.c @@ -58,7 +58,7 @@ write_strsignal (int fd, int signal) char buf[30]; char *ptr = _itoa_word (signal, &buf[sizeof (buf)], 10, 0); WRITE_STRING ("signal "); - write (fd, buf, &buf[sizeof (buf)] - ptr); + write (fd, ptr, &buf[sizeof (buf)] - ptr); } |