aboutsummaryrefslogtreecommitdiffstats
path: root/sink.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-02-15 03:52:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-02-15 03:52:22 +0000
commita90b20cfb6fa5332dd8a4335b16a171feaf5a3a1 (patch)
treed6cb1a8bafd9b0ad735f27ada22a5c884be64cb5 /sink.c
parent0b3901aacf0dfb18d83570878919dbdbb7956709 (diff)
downloadfetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.tar.gz
fetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.tar.bz2
fetchmail-a90b20cfb6fa5332dd8a4335b16a171feaf5a3a1.zip
Minor fixes for 5.9.8.
svn path=/trunk/; revision=3578
Diffstat (limited to 'sink.c')
-rw-r--r--sink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sink.c b/sink.c
index ffd7a1f9..5ffe142f 100644
--- a/sink.c
+++ b/sink.c
@@ -706,14 +706,14 @@ static int open_smtp_sink(struct query *ctl, struct msgblk *msg,
else {
if (ctl->smtpname) {
#ifdef HAVE_SNPRINTF
- snprintf(addr, sizeof(addr)-1, "%s", ctl->smtpname);
+ snprintf(addr, sizeof(addr), "%s", ctl->smtpname);
#else
sprintf(addr, "%s", ctl->smtpname);
#endif /* HAVE_SNPRINTF */
} else {
#ifdef HAVE_SNPRINTF
- snprintf(addr, sizeof(addr)-1, "%s@%s", idp->id, ctl->destaddr);
+ snprintf(addr, sizeof(addr), "%s@%s", idp->id, ctl->destaddr);
#else
sprintf(addr, "%s@%s", idp->id, ctl->destaddr);
#endif /* HAVE_SNPRINTF */
@@ -785,7 +785,7 @@ static int open_smtp_sink(struct query *ctl, struct msgblk *msg,
else
{
#ifdef HAVE_SNPRINTF
- snprintf(addr, sizeof(addr)-1, "%s@%s", run.postmaster, ctl->destaddr);
+ snprintf(addr, sizeof(addr), "%s@%s", run.postmaster, ctl->destaddr);
#else
sprintf(addr, "%s@%s", run.postmaster, ctl->destaddr);
#endif /* HAVE_SNPRINTF */