From 5ea6cd45eb42df9d36ed534d339349bf663c7735 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Wed, 1 Jul 2009 14:58:15 +0000 Subject: [PATCH] fix segfault when using the maxlen argument (#4359) SVN-Revision: 16641 --- src/trx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/trx.c b/src/trx.c index 1ad3de5..5e5e77a 100644 --- a/src/trx.c +++ b/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; -- 2.30.2