From 2ed8dc12cd5ffbbff9cd25e928a720be3596f2af Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Wed, 10 Nov 2004 19:57:47 +0000 Subject: Clean up the horrible HAVE_[V]SNPRINTF mess, use Trio on systems that lack real snprintf or vsnprintf. svn path=/trunk/; revision=3996 --- imap.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'imap.c') diff --git a/imap.c b/imap.c index 4395129f..6967524f 100644 --- a/imap.c +++ b/imap.c @@ -510,13 +510,7 @@ static int imap_getauth(int sock, struct query *ctl, char *greeting) imap_canonicalize(remotename, ctl->remotename, NAMELEN); imap_canonicalize(password, ctl->password, PASSWORDLEN); -#ifdef HAVE_SNPRINTF snprintf(shroud, sizeof (shroud), "\"%s\"", password); -#else - strcpy(shroud, "\""); - strcat(shroud, password); - strcat(shroud, "\""); -#endif ok = gen_transact(sock, "LOGIN \"%s\" \"%s\"", remotename, password); shroud[0] = '\0'; #ifdef SSL_ENABLE -- cgit v1.2.3