diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-09-08 15:43:56 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-09-08 15:43:56 +0000 |
commit | 436e53cae59d7c609b13e2a438102322695e6b25 (patch) | |
tree | 9b6318be4a5dd4bed2d17bb9d1599690f992c3b1 /conf.c | |
parent | ba1482c47fbbdb8a2bb81acdfce585f41f6e3866 (diff) | |
download | fetchmail-436e53cae59d7c609b13e2a438102322695e6b25.tar.gz fetchmail-436e53cae59d7c609b13e2a438102322695e6b25.tar.bz2 fetchmail-436e53cae59d7c609b13e2a438102322695e6b25.zip |
Almost ready to ship.
svn path=/trunk/; revision=2068
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -236,11 +236,14 @@ void dump_config(struct runctl *runp, struct query *querylist) fprintf(stdout, "'localnames':["); for (idp = ctl->localnames; idp; idp = idp->next) { + char namebuf[USERNAMELEN + 1]; + + strncpy(namebuf, visbuf(idp->id), USERNAMELEN); + namebuf[USERNAMELEN] = '\0'; if (idp->val.id2) - fprintf(stdout, "(\"%s\", %s)", - visbuf(idp->id), visbuf(idp->val.id2)); + fprintf(stdout, "(\"%s\", %s)", namebuf, visbuf(idp->val.id2)); else - fprintf(stdout, "\"%s\"", visbuf(idp->id)); + fprintf(stdout, "\"%s\"", namebuf); if (idp->next) fputs(", ", stdout); } |