]> Pileus Git - ~andy/fetchmail/blobdiff - imap.c
i18n fixes, cs.po updates, by Miloslav Trmac.
[~andy/fetchmail] / imap.c
diff --git a/imap.c b/imap.c
index 4395129f89e0eb7e857c0093051cfe20934f31f0..9ebbe7ab183a43d87981a27b26961b0a6edd701d 100644 (file)
--- 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
@@ -673,7 +667,9 @@ static int imap_getrange(int sock,
        if (recentcount == 0)
                count = 0;
        if (outlevel >= O_DEBUG)
-           report(stdout, GT_("%d messages waiting after re-poll\n"), count);
+           report(stdout, ngettext("%d message waiting after re-poll\n",
+                                   "%d messages waiting after re-poll\n",
+                                   count), count);
     }
     else
     {
@@ -687,7 +683,9 @@ static int imap_getrange(int sock,
            return(ok);
        }
        else if (outlevel >= O_DEBUG)
-           report(stdout, GT_("%d messages waiting after first poll\n"), count);
+           report(stdout, ngettext("%d message waiting after first poll\n",
+                                   "%d messages waiting after first poll\n",
+                                   count), count);
 
        /* no messages?  then we may need to idle until we get some */
        while (count == 0 && do_idle) {
@@ -713,7 +711,9 @@ static int imap_getrange(int sock,
                return(ok);
            }
            if (outlevel >= O_DEBUG)
-               report(stdout, GT_("%d messages waiting after expunge\n"), count);
+               report(stdout, ngettext("%d message waiting after expunge\n",
+                                       "%d messages waiting after expunge\n",
+                                       count), count);
        }
     }