[hackers] [ii][PATCH] ewritestr: Remove duplicate shift of offset

From: <mizmar_AT_protonmail.com>
Date: Sun, 05 Jul 2020 19:39:19 +0000

---
 ii.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/ii.c b/ii.c
index 7ca3ee8..426fcff 100644
--- a/ii.c
+++ b/ii.c
_AT_@ -102,7 +102,6 @@ ewritestr(int fd, const char *s)
        for (off = 0; off < len; off += w) {
                if ((w = write(fd, s + off, len - off)) == -1)
                        break;
-               off += w;
        }
        if (w == -1) {
                fprintf(stderr, "%s: write: %s\n", argv0, strerror(errno));
--
2.25.1
Received on Sun Jul 05 2020 - 21:39:19 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 05 2020 - 21:48:32 CEST