From 1f99d1efc7229b36be8bf0cf49562ba53a75e581 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 27 Sep 2010 13:28:33 +0200 Subject: Format UID lists properly (in debug mode). --- uid.c | 8 ++++---- 1 file 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_(" ")); 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_(" ")); 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"); -- cgit v1.2.3