commit ecf390259cfe193e7a41fbd1b7a4380621b8f677
Author:     Hiltjo Posthuma <[email protected]>
AuthorDate: Sun Jul 5 22:32:13 2020 +0200
Commit:     Hiltjo Posthuma <[email protected]>
CommitDate: Sun Jul 5 22:32:13 2020 +0200

    ewritestr: Remove duplicate shift of offset
    
    Patch by [email protected], thanks.

diff --git a/ii.c b/ii.c
index 7ca3ee8..426fcff 100644
--- a/ii.c
+++ b/ii.c
@@ -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));

Reply via email to