ref: 0d93e2fe70ebbed69d65ef711f4060e949af1285
parent: 4b787e3205592f1fb4ff933dd6288f7c0d77f616
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Mon Aug 3 10:58:41 EDT 2015
snoopy: dont rely on atoi() being able to parse hex
--- a/sys/src/cmd/ip/snoopy/main.c
+++ b/sys/src/cmd/ip/snoopy/main.c
@@ -750,7 +750,7 @@
f->subop = fld->subop;
switch(fld->ftype){
case Fnum:
- f->ulv = atoi(f->r->s);
+ f->ulv = strtoul(f->r->s, 0, 0);
break;
case Fether:
v = csgetvalue(nil, "sys", (char*)f->r->s,