From: Florian Fainelli Date: Wed, 1 Jul 2009 14:58:15 +0000 (+0000) Subject: fix segfault when using the maxlen argument (#4359) X-Git-Tag: reboot~23092 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e9480699070c69ad45dcba5aeb26017a2c08137;p=openwrt%2Fstaging%2Flynxis.git fix segfault when using the maxlen argument (#4359) SVN-Revision: 16641 --- diff --git a/tools/firmware-utils/src/trx.c b/tools/firmware-utils/src/trx.c index 1ad3de54f6..5e5e77a492 100644 --- a/tools/firmware-utils/src/trx.c +++ b/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;