diff options
author | Jonathan Lemon <jlemon@FreeBSD.org> | 1997-08-19 14:34:04 +0000 |
---|---|---|
committer | Jonathan Lemon <jlemon@FreeBSD.org> | 1997-08-19 14:34:04 +0000 |
commit | 1e17b9450c7f28c7a16c0cd135b83c9cf055287b (patch) | |
tree | de1cb912e9b6c944783a5048aa137db731730861 /usr.bin/cmp/cmp.c | |
parent | 9c08ff38e51c8ff76c291a20222b3f3a1e9c5d79 (diff) | |
download | src-1e17b9450c7f28c7a16c0cd135b83c9cf055287b.tar.gz src-1e17b9450c7f28c7a16c0cd135b83c9cf055287b.zip |
Permit hex/octal parameters to cmp, to match what the manual page says.
PR: 3850, 3855
Notes
Notes:
svn path=/head/; revision=28421
Diffstat (limited to 'usr.bin/cmp/cmp.c')
-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 6755ff6d5eb6..da269d844a95 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)) { |