From 1e17b9450c7f28c7a16c0cd135b83c9cf055287b Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Tue, 19 Aug 1997 14:34:04 +0000 Subject: [PATCH] Permit hex/octal parameters to cmp, to match what the manual page says. PR: 3850, 3855 --- usr.bin/cmp/cmp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c index 6755ff6d5eb..da269d844a9 100644 --- a/usr.bin/cmp/cmp.c +++ b/usr.bin/cmp/cmp.c @@ -120,8 +120,8 @@ main(argc, argv) exit(1); } - skip1 = argc > 2 ? strtol(argv[2], NULL, 10) : 0; - skip2 = argc == 4 ? strtol(argv[3], NULL, 10) : 0; + skip1 = argc > 2 ? strtol(argv[2], NULL, 0) : 0; + skip2 = argc == 4 ? strtol(argv[3], NULL, 0) : 0; if (!special) { if (fstat(fd1, &sb1)) {