fix argument parsing typo
git-svn-id: svn+ssh://svn.corp.yahoo.com/yahoo/yrl/labs/pnuts/code/logstore@2447 8dad8b1f-cf64-0410-95b6-bcf113ffbcfe
This commit is contained in:
parent
ab9cfd1443
commit
38f1793eaa
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ int main(int argc, char * argv[]) {
|
|||
char ** orig_argv = argv;
|
||||
if(argc > 1) {
|
||||
char * end;
|
||||
int n = strtod(argv[1], &end);
|
||||
int n = strtol(argv[1], &end, 10);
|
||||
if(argv[1][0] && !*end) {
|
||||
mode = n;
|
||||
argc--;
|
||||
|
|
Loading…
Reference in a new issue