[tools] fix segfault when using the maxlen argument (#4359)
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 1 Jul 2009 14:58:15 +0000 (14:58 +0000)
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Wed, 1 Jul 2009 14:58:15 +0000 (14:58 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16641 3c298f89-4303-0410-b956-a3cf2f4a3e73

tools/firmware-utils/src/trx.c

index 1ad3de5..5e5e77a 100644 (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;
This page took 0.030658 seconds and 4 git commands to generate.