From 812674cd4c199bf2741eda63e9cd27b3aba7033c Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 12 Aug 1997 17:10:50 +0000 Subject: Fix dor non-Linux systems. svn path=/trunk/; revision=1266 --- NEWS | 3 +++ driver.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/NEWS b/NEWS index eba5ef43..31aa5d33 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,9 @@ Release Notes: ------------------------------------------------------------------------------ +fetchmail-4.1.1 () +* Fix an obvious bug in some snprintf calls (non-Linux systems only) + fetchmail-4.1.0 (Mon Aug 11 17:19:57 EDT 1997) * Make the RPM depend on `smtpdaemon', which the sendmail package provides. * Clean up the Interactive UNIX System V/386 Release 3.2 port. diff --git a/driver.c b/driver.c index 4816ee34..8e622f7e 100644 --- a/driver.c +++ b/driver.c @@ -993,7 +993,7 @@ int num; /* index of message */ #ifdef HAVE_SNPRINTF snprintf(addr, sizeof(addr)-1, "%s@%s", idp->id,fetchmailhost); #else - sprintf(addr, "%s@%s", idp->id, ); + sprintf(addr, "%s@%s", idp->id, idp->id,fetchmailhost); #endif /* HAVE_SNPRINTF */ if (SMTP_rcpt(ctl->smtp_socket, addr) == SM_OK) @@ -1011,7 +1011,7 @@ int num; /* index of message */ #ifdef HAVE_SNPRINTF snprintf(addr, sizeof(addr)-1, "%s@%s", idp->id, fetchmailhost); #else - sprintf(addr, "%s@%s", idp->id, ); + sprintf(addr, "%s@%s", idp->id, idp->id,fetchmailhost); #endif /* HAVE_SNPRINTF */ if (SMTP_rcpt(ctl->smtp_socket, user) != SM_OK) -- cgit v1.2.3