projects
/
openwrt
/
staging
/
lynxis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a89436
)
fix segfault when using the maxlen argument (#4359)
author
Florian Fainelli
<florian@openwrt.org>
Wed, 1 Jul 2009 14:58:15 +0000
(14:58 +0000)
committer
Florian Fainelli
<florian@openwrt.org>
Wed, 1 Jul 2009 14:58:15 +0000
(14:58 +0000)
SVN-Revision: 16641
tools/firmware-utils/src/trx.c
patch
|
blob
|
history
diff --git
a/tools/firmware-utils/src/trx.c
b/tools/firmware-utils/src/trx.c
index 1ad3de54f63bcc756d33592f164c85c05a2f5089..5e5e77a492c077c669dbebd407e6701b21d41db0 100644
(file)
--- 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;