aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/xargs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/posix/xargs.c b/toys/posix/xargs.c
index 9a3e9dae..6f8c76fb 100644
--- a/toys/posix/xargs.c
+++ b/toys/posix/xargs.c
@@ -76,7 +76,8 @@ static char *handle_entries(char *data, char **entry)
if (!*s) break;
save = s;
- TT.bytes += sizeof(char *);
+ // We ought to add sizeof(char *) to TT.bytes to be correct, but we don't
+ // for bug compatibility with busybox 1.30.1 and findutils 4.7.0.
for (;;) {
if (++TT.bytes >= TT.s && TT.s) return save;