snoopy: dont rely on atoi() being able to parse hex

This commit is contained in:
cinap_lenrek 2015-08-03 14:58:41 +02:00
parent 4b787e3205
commit 0d93e2fe70

View file

@ -750,7 +750,7 @@ compile_cmp(char *proto, Filter *f, Field *fld)
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,