diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-06-27 15:42:53 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2014-06-27 15:42:53 +0200 |
commit | f6a0aabfa27e19ad57823e104db7eac1252e6f1f (patch) | |
tree | e69a3f3c6e14a2b566a18e19710e7f01b30c4dba /sfeed_plain.c | |
parent | 5acace38c73074fa08c8b44d1109cfc9c6b0d66e (diff) |
small fixes
reorder static -> public xml functions.
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
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); } |