fix segfault when using the maxlen argument (#4359)

SVN-Revision: 16641
This commit is contained in:
Florian Fainelli 2009-07-01 14:58:15 +00:00
parent 8a8943671a
commit 9e94806990

View file

@ -172,6 +172,7 @@ int main(int argc, char **argv)
fprintf(stderr, "realloc failed"); fprintf(stderr, "realloc failed");
return EXIT_FAILURE; return EXIT_FAILURE;
} }
p = (struct trx_header *) buf;
break; break;
case 'a': case 'a':
errno = 0; errno = 0;