Page MenuHomeFreeBSD

D58074.diff
No OneTemporary

D58074.diff

diff --git a/usr.bin/hexdump/odsyntax.c b/usr.bin/hexdump/odsyntax.c
--- a/usr.bin/hexdump/odsyntax.c
+++ b/usr.bin/hexdump/odsyntax.c
@@ -139,7 +139,7 @@
errx(1, "%s: invalid skip amount", optarg);
break;
case 'N':
- if ((length = atoi(optarg)) <= 0)
+ if ((length = strtol(optarg, NULL, 0)) <= 0 || errno)
errx(1, "%s: invalid length", optarg);
break;
case 'O':

File Metadata

Mime Type
text/plain
Expires
Mon, Jul 13, 12:36 AM (19 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34831423
Default Alt Text
D58074.diff (393 B)

Event Timeline