Changeset 2818 for zzuf


Ignore:
Timestamp:
Sep 18, 2008, 12:17:23 AM (15 years ago)
Author:
Sam Hocevar
Message:
  • zzuf.c: use atol() instead of atoi() for the --seed flag.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zzuf/trunk/src/zzuf.c

    r2817 r2818  
    337337            tmp = strchr(myoptarg, ':');
    338338            opts->seed = atol(myoptarg);
    339             opts->endseed = tmp ? tmp[1] ? (uint32_t)atoi(tmp + 1)
     339            opts->endseed = tmp ? tmp[1] ? (uint32_t)atol(tmp + 1)
    340340                                         : (uint32_t)-1UL
    341341                                : opts->seed + 1;
Note: See TracChangeset for help on using the changeset viewer.