[tools] fix segfault when using the maxlen argument (#4359)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16641 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
Florian Fainelli 2009-07-01 14:58:15 +00:00
parent 7bba3b72d7
commit 7d7ed4e8a3

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;