summaryrefslogtreecommitdiff
path: root/sfeed_plain.c
diff options
context:
space:
mode:
authorHiltjo Posthuma <hiltjo@codemadness.org>2018-02-18 14:39:07 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2018-02-18 14:39:07 +0100
commit9276032c7b9e27c01ae93ff8e267d7ce4141e41a (patch)
tree2198b625b446ebe0fbbf80bac47fc96dae2125e1 /sfeed_plain.c
parent2e7f0da2975fed69c927c7641ba37d95ad0887e6 (diff)
sfeed_plain: utf-8 pad name
Diffstat (limited to 'sfeed_plain.c')
-rw-r--r--sfeed_plain.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfeed_plain.c b/sfeed_plain.c
index b2f5236..236be99 100644
--- a/sfeed_plain.c
+++ b/sfeed_plain.c
@@ -37,8 +37,10 @@ printfeed(FILE *fp, const char *feedname)
else
fputs(" ", stdout);
- if (feedname[0])
- printf("%-15.15s ", feedname);
+ if (feedname[0]) {
+ printutf8pad(stdout, feedname, 15, ' ');
+ fputs(" ", stdout);
+ }
fprintf(stdout, "%04d-%02d-%02d %02d:%02d ",
tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,