fix segfault when using the maxlen argument (#4359)

SVN-Revision: 16641
master
Florian Fainelli 15 years ago
parent 8a8943671a
commit 9e94806990
  1. 1
      tools/firmware-utils/src/trx.c

@ -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;

Loading…
Cancel
Save