From 3811f77e30bd1ced9f69708b3dbcf28bf3ba88d1 Mon Sep 17 00:00:00 2001 From: florian Date: Wed, 1 Jul 2009 14:58:15 +0000 Subject: [tools] fix segfault when using the maxlen argument (#4359) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16641 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/firmware-utils/src/trx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') diff --git a/tools/firmware-utils/src/trx.c b/tools/firmware-utils/src/trx.c index 1ad3de54f..5e5e77a49 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; -- cgit v1.2.3