diff options
author | jlemon <jlemon@FreeBSD.org> | 1997-08-19 14:34:04 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 1997-08-19 14:34:04 +0000 |
commit | 34cfd5d30068230986ca8e265af75ed3c6dbee87 (patch) | |
tree | 840deac7fa7a730463cb46e43bbe94bc7c290c90 /usr.bin/cmp | |
parent | 7c975788dd2092b25fec184a24fcbacade3ab125 (diff) | |
download | FreeBSD-src-34cfd5d30068230986ca8e265af75ed3c6dbee87.zip FreeBSD-src-34cfd5d30068230986ca8e265af75ed3c6dbee87.tar.gz |
Permit hex/octal parameters to cmp, to match what the manual page says.
PR: 3850, 3855
Diffstat (limited to 'usr.bin/cmp')
-rw-r--r-- | usr.bin/cmp/cmp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/cmp/cmp.c b/usr.bin/cmp/cmp.c index 6755ff6..da269d8 100644 --- a/usr.bin/cmp/cmp.c +++ b/usr.bin/cmp/cmp.c @@ -120,8 +120,8 @@ endargs: 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)) { |