ewritestr: Remove duplicate shift of offset - ii - irc it, simple FIFO based irc client
(HTM) git clone git://git.suckless.org/ii
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ecf390259cfe193e7a41fbd1b7a4380621b8f677
(DIR) parent 49e239fbb19f1dc880f269a1adb0543dadc1f4e9
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 5 Jul 2020 22:32:13 +0200
ewritestr: Remove duplicate shift of offset
Patch by mizmar@protonmail.com, thanks.
Diffstat:
M ii.c | 1 -
1 file changed, 0 insertions(+), 1 deletion(-)
---
(DIR) diff --git 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));