aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/posix/xargs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/posix/xargs.c b/toys/posix/xargs.c
index f76a5fce..8997a443 100644
--- a/toys/posix/xargs.c
+++ b/toys/posix/xargs.c
@@ -133,11 +133,11 @@ void xargs_main(void)
// Read line
if (!data) {
- ssize_t l = 0;
- if (getdelim(&data, (size_t *)&l, TT.delim, stdin)<0) {
+ size_t l = 0;
+
+ if (getdelim(&data, &l, TT.delim, stdin)<0) {
data = 0;
done++;
-
break;
}
}