diff options
Diffstat (limited to 'sfeed_plain.c')
-rw-r--r-- | sfeed_plain.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfeed_plain.c b/sfeed_plain.c index a7d4380..ca5756b 100644 --- a/sfeed_plain.c +++ b/sfeed_plain.c @@ -10,7 +10,8 @@ printutf8padded(FILE *fp, const char *s, size_t len, int pad) { size_t n = 0, i; for(i = 0; s[i] && n < len; i++) { - if((s[i] & 0xc0) != 0x80) /* start of character */ + /* start of character */ + if((s[i] & 0xc0) != 0x80) n++; putc(s[i], fp); } |