git: 9front

Download patch

ref: 8582ed1daf0bc181a6bf10c948d88e5c0c0e3f61
parent: d333520f08e2f4492ceb17fc001ec1bd64269511
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,
--