mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-02-25 14:37:57 +02:00
[tools] fix segfault when using the maxlen argument (#4359)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16641 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
69aab5b0cc
commit
3811f77e30
@ -172,6 +172,7 @@ int main(int argc, char **argv)
|
|||||||
fprintf(stderr, "realloc failed");
|
fprintf(stderr, "realloc failed");
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
p = (struct trx_header *) buf;
|
||||||
break;
|
break;
|
||||||
case 'a':
|
case 'a':
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user