diff options
Diffstat (limited to 'findutils')
-rw-r--r-- | findutils/find.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/findutils/find.c b/findutils/find.c index ba8fa0854..76f670942 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -276,7 +276,11 @@ ACTF(inum) ACTF(exec) { int i, rc; +#if ENABLE_USE_PORTABLE_CODE + char **argv = alloca(sizeof(char*) * (ap->exec_argc + 1)); +#else /* gcc 4.3.1 generates smaller code: */ char *argv[ap->exec_argc + 1]; +#endif for (i = 0; i < ap->exec_argc; i++) argv[i] = subst(ap->exec_argv[i], ap->subst_count[i], fileName); argv[i] = NULL; /* terminate the list */ |