]> Pileus Git - ~andy/fetchmail/commitdiff
Fix bad sprintf calls.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 3 Sep 1997 06:04:05 +0000 (06:04 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 3 Sep 1997 06:04:05 +0000 (06:04 -0000)
svn path=/trunk/; revision=1277

driver.c

index 3113513ce179c7b6b18a1b42c29434c74fdd4287..deef06fa3e17743f60763bce01964138d4ac94df 100644 (file)
--- a/driver.c
+++ b/driver.c
@@ -1007,7 +1007,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, idp->id,fetchmailhost);
+               sprintf(addr, "%s@%s", idp->id, fetchmailhost);
 #endif /* HAVE_SNPRINTF */
 
                if (SMTP_rcpt(ctl->smtp_socket, addr) == SM_OK)
@@ -1025,7 +1025,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, idp->id,fetchmailhost);
+           sprintf(addr, "%s@%s", idp->id, fetchmailhost);
 #endif /* HAVE_SNPRINTF */
 
            if (SMTP_rcpt(ctl->smtp_socket, user) != SM_OK)