aboutsummaryrefslogtreecommitdiff
path: root/findutils/xargs.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2016-05-16 09:33:03 +0100
committerRon Yorston <rmy@pobox.com>2016-05-16 09:33:03 +0100
commit35d2f5bccb0f3dde600702ebcdb5424d4d50be4a (patch)
tree6e0ff0341c69839e268459a199682628bae734ed /findutils/xargs.c
parent248a2600a2f4b442101ad568d1994b908bb28d4b (diff)
parentf2559e5c2b7bd2c5fa0dd8e88d0a931da92a23af (diff)
downloadbusybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.gz
busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.tar.bz2
busybox-w32-35d2f5bccb0f3dde600702ebcdb5424d4d50be4a.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'findutils/xargs.c')
-rw-r--r--findutils/xargs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 8b7ab7b6a..eca1185ec 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -69,6 +69,7 @@
69#include <conio.h> 69#include <conio.h>
70#endif 70#endif
71#include "libbb.h" 71#include "libbb.h"
72#include "common_bufsiz.h"
72 73
73/* This is a NOEXEC applet. Be very careful! */ 74/* This is a NOEXEC applet. Be very careful! */
74 75
@@ -103,8 +104,9 @@ struct globals {
103 const char *eof_str; 104 const char *eof_str;
104 int idx; 105 int idx;
105} FIX_ALIASING; 106} FIX_ALIASING;
106#define G (*(struct globals*)&bb_common_bufsiz1) 107#define G (*(struct globals*)bb_common_bufsiz1)
107#define INIT_G() do { \ 108#define INIT_G() do { \
109 setup_common_bufsiz(); \
108 G.eof_str = NULL; /* need to clear by hand because we are NOEXEC applet */ \ 110 G.eof_str = NULL; /* need to clear by hand because we are NOEXEC applet */ \
109 IF_FEATURE_XARGS_SUPPORT_REPL_STR(G.repl_str = "{}";) \ 111 IF_FEATURE_XARGS_SUPPORT_REPL_STR(G.repl_str = "{}";) \
110 IF_FEATURE_XARGS_SUPPORT_REPL_STR(G.eol_ch = '\n';) \ 112 IF_FEATURE_XARGS_SUPPORT_REPL_STR(G.eol_ch = '\n';) \