* Put opts->bytes handling in the right place.

This commit is contained in:
Sam Hocevar 2007-01-25 11:47:44 +00:00 committed by sam
parent 68446780ce
commit 2a52319707

View File

@ -300,11 +300,6 @@ int main(int argc, char *argv[])
/* If asked to read from the standard input */
if(optind >= argc)
{
if(opts->bytes)
_zz_bytes(opts->bytes);
/* FIXME: protect and refuse are ignored */
if(opts->endseed != opts->seed + 1)
{
printf("%s: seed ranges are incompatible with stdin fuzzing\n",
@ -392,6 +387,8 @@ static void loop_stdin(struct opts *opts)
if(opts->md5)
ctx = _zz_md5_init();
if(opts->bytes)
_zz_bytes(opts->bytes);
if(opts->protect)
_zz_protect(opts->protect);
if(opts->refuse)