diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2006-07-12 09:13:33 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2006-07-12 09:13:33 +0000 |
| commit | 1a8b0c1571a43667ce2fa6b0e99fb6b33b428d35 (patch) | |
| tree | 21509d008991143e44ac198d3d9c0d9144d8da42 | |
| parent | b4c618c099443efcc9c2d8ffd4eb115009aa4329 (diff) | |
Notes
| -rw-r--r-- | usr.bin/kdump/mksubr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/kdump/mksubr b/usr.bin/kdump/mksubr index 1f5debd6d01c..8d3caaeaddae 100644 --- a/usr.bin/kdump/mksubr +++ b/usr.bin/kdump/mksubr @@ -151,7 +151,10 @@ extern char *signames[]; /* from kdump.c */ void signame (int sig) { - (void)printf("SIG%s",signames[sig]); + if (sig > 0 && sig < NSIG) + (void)printf("SIG%s",signames[sig]); + else + (void)printf("SIG %d", sig); } /* MANUAL */ |
