intel_reg_read: use strtol instead of atoi

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
This commit is contained in:
Ben Widawsky 2012-08-23 11:32:57 -07:00
parent baf026d692
commit ea944a9faf

View File

@ -87,7 +87,7 @@ int main(int argc, char** argv)
ret = 1;
goto out;
case 'c':
dwords = atoi(optarg);
dwords = strtol(optarg, NULL, 0);
break;
}
}