aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-09-27 13:28:33 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-09-27 13:28:38 +0200
commit1f99d1efc7229b36be8bf0cf49562ba53a75e581 (patch)
treec358b4df8d220c155d4ad9db084a027747f144b7
parent77317bf3d6d96a3ca580ea38039ceed23026dcdf (diff)
downloadfetchmail-1f99d1efc7229b36be8bf0cf49562ba53a75e581.tar.gz
fetchmail-1f99d1efc7229b36be8bf0cf49562ba53a75e581.tar.bz2
fetchmail-1f99d1efc7229b36be8bf0cf49562ba53a75e581.zip
Format UID lists properly (in debug mode).
-rw-r--r--uid.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/uid.c b/uid.c
index 935095e7..8a775b9c 100644
--- a/uid.c
+++ b/uid.c
@@ -252,8 +252,8 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile)
if (!idp)
report_build(stdout, GT_(" <empty>"));
else for (idp = ctl->oldsaved; idp; idp = idp->next) {
- char *t = sdump(idp->id, strlen(idp->id));
- report_build(stdout, " %s", t);
+ char *t = sdump(idp->id, strlen(idp->id)-1);
+ report_build(stdout, " %s\n", t);
free(t);
}
report_complete(stdout, "\n");
@@ -263,8 +263,8 @@ void initialize_saved_lists(struct query *hostlist, const char *idfile)
if (!scratchlist)
report_build(stdout, GT_(" <empty>"));
else for (idp = scratchlist; idp; idp = idp->next) {
- char *t = sdump(idp->id, strlen(idp->id));
- report_build(stdout, " %s", t);
+ char *t = sdump(idp->id, strlen(idp->id)-1);
+ report_build(stdout, " %s\n", t);
free(t);
}
report_complete(stdout, "\n");