Or how about this?

Ron
---
 util-linux/rev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/util-linux/rev.c b/util-linux/rev.c
index d439b4da8..63b005c67 100644
--- a/util-linux/rev.c
+++ b/util-linux/rev.c
@@ -109,6 +109,7 @@ int rev_main(int argc UNUSED_PARAM, char **argv)
                        strrev(buf, strlen(buf));
 #endif
                        fputs_stdout(buf);
+                       pos = 0;
                }
                fclose(fp);
        } while (*argv);
-- 
2.31.1

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to