fix segfault when using the maxlen argument (#4359)

SVN-Revision: 16641
lede-17.01
Florian Fainelli 2009-07-01 14:58:15 +00:00
parent 8a8943671a
commit 9e94806990
1 changed files with 1 additions and 0 deletions

View File

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