snoopy: dont rely on atoi() being able to parse hex
This commit is contained in:
parent
4b787e3205
commit
0d93e2fe70
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue