summaryrefslogtreecommitdiffstats
path: root/usr.bin/kdump
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2009-11-22 16:13:16 +0000
committerattilio <attilio@FreeBSD.org>2009-11-22 16:13:16 +0000
commitb5c6ae703db1729054eea6db48b8625ec9382f4d (patch)
tree28512429519f9aeb16d3d4d8d19fa9a1cd3c6bc8 /usr.bin/kdump
parent66f12f6b165e13ebf79018d06d88fc74ee0e3043 (diff)
downloadFreeBSD-src-b5c6ae703db1729054eea6db48b8625ec9382f4d.zip
FreeBSD-src-b5c6ae703db1729054eea6db48b8625ec9382f4d.tar.gz
MFC r199024:
Use a safety belt for cases where corrupted narg can be passed to the ktrsyscall().
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r--usr.bin/kdump/kdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 3d8b93a..60ce05f 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -799,7 +799,7 @@ ktrsyscall(struct ktr_syscall *ktr)
narg--;
}
}
- while (narg) {
+ while (narg > 0) {
print_number(ip,narg,c);
}
(void)putchar(')');
OpenPOWER on IntegriCloud