diff options
Diffstat (limited to 'findutils/find.c')
-rw-r--r-- | findutils/find.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/findutils/find.c b/findutils/find.c index a0d4853de..d71c69782 100644 --- a/findutils/find.c +++ b/findutils/find.c | |||
@@ -342,6 +342,7 @@ | |||
342 | 342 | ||
343 | #include <fnmatch.h> | 343 | #include <fnmatch.h> |
344 | #include "libbb.h" | 344 | #include "libbb.h" |
345 | #include "common_bufsiz.h" | ||
345 | #if ENABLE_FEATURE_FIND_REGEX | 346 | #if ENABLE_FEATURE_FIND_REGEX |
346 | # include "xregex.h" | 347 | # include "xregex.h" |
347 | #endif | 348 | #endif |
@@ -421,8 +422,9 @@ struct globals { | |||
421 | recurse_flags_t recurse_flags; | 422 | recurse_flags_t recurse_flags; |
422 | IF_FEATURE_FIND_EXEC_PLUS(unsigned max_argv_len;) | 423 | IF_FEATURE_FIND_EXEC_PLUS(unsigned max_argv_len;) |
423 | } FIX_ALIASING; | 424 | } FIX_ALIASING; |
424 | #define G (*(struct globals*)&bb_common_bufsiz1) | 425 | #define G (*(struct globals*)bb_common_bufsiz1) |
425 | #define INIT_G() do { \ | 426 | #define INIT_G() do { \ |
427 | setup_common_bufsiz(); \ | ||
426 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ | 428 | BUILD_BUG_ON(sizeof(G) > COMMON_BUFSIZE); \ |
427 | /* we have to zero it out because of NOEXEC */ \ | 429 | /* we have to zero it out because of NOEXEC */ \ |
428 | memset(&G, 0, sizeof(G)); \ | 430 | memset(&G, 0, sizeof(G)); \ |