* zzuf.c: use atol() instead of atoi() for the --seed flag.

This commit is contained in:
Sam Hocevar 2008-09-17 22:17:23 +00:00 committed by sam
parent c50a60d09d
commit 2c4a8f36c5

View File

@ -336,7 +336,7 @@ int main(int argc, char *argv[])
myoptarg++;
tmp = strchr(myoptarg, ':');
opts->seed = atol(myoptarg);
opts->endseed = tmp ? tmp[1] ? (uint32_t)atoi(tmp + 1)
opts->endseed = tmp ? tmp[1] ? (uint32_t)atol(tmp + 1)
: (uint32_t)-1UL
: opts->seed + 1;
break;