molly guard

This commit is contained in:
tonton th 2020-12-22 22:39:00 +01:00
parent 2460d622b1
commit bef5954b93
1 changed files with 6 additions and 0 deletions

View File

@ -188,6 +188,10 @@ if (foo) {
string...
*/
tmparg = alloca(strlen(argument) + 1);
if (NULL==tmparg) {
fprintf(stderr, "memory panic in %s:%s\n", __FILE__, __func__);
exit(1);
}
strcpy(tmparg, argument);
for (;;) {
@ -209,3 +213,5 @@ if (verbosity) filterstack_list(numid, __func__);
return 0;
}
/* ----------------------------------------------------------- */