aboutsummaryrefslogtreecommitdiffstats
path: root/imap.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-07-20 15:59:26 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-07-20 15:59:26 +0000
commitfcb6b0b6957003e1db8bca9acf42bddd9c677584 (patch)
treeb684aa3b8187861f9353d80cd41aeac005a8ac2c /imap.c
parentad7bc7f22d15ac24f844b707933131baf3f1ff3e (diff)
downloadfetchmail-fcb6b0b6957003e1db8bca9acf42bddd9c677584.tar.gz
fetchmail-fcb6b0b6957003e1db8bca9acf42bddd9c677584.tar.bz2
fetchmail-fcb6b0b6957003e1db8bca9acf42bddd9c677584.zip
strncpy -> strlcpy. Mark 'bogus message count\!' message translatable.
svn path=/trunk/; revision=4150
Diffstat (limited to 'imap.c')
-rw-r--r--imap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/imap.c b/imap.c
index 9ebbe7ab..dceeca49 100644
--- a/imap.c
+++ b/imap.c
@@ -53,8 +53,7 @@ static int imap_ok(int sock, char *argbuf)
/* interpret untagged status responses */
if (strstr(buf, "* CAPABILITY"))
{
- strncpy(capabilities, buf + 12, sizeof(capabilities));
- capabilities[sizeof(capabilities)-1] = '\0';
+ strlcpy(capabilities, buf + 12, sizeof(capabilities));
}
else if (strstr(buf, "EXISTS"))
{
@@ -68,7 +67,7 @@ static int imap_ok(int sock, char *argbuf)
*/
if (count > INT_MAX/sizeof(int))
{
- report(stderr, "bogus message count!");
+ report(stderr, GT_("bogus message count!"));
return(PS_PROTOCOL);
}
@@ -166,7 +165,7 @@ static int imap_ok(int sock, char *argbuf)
#ifdef NTLM_ENABLE
#include "ntlm.h"
-static tSmbNtlmAuthRequest request;
+static tSmbNtlmAuthRequest request;
static tSmbNtlmAuthChallenge challenge;
static tSmbNtlmAuthResponse response;
@@ -185,7 +184,7 @@ static int do_imap_ntlm(int sock, struct query *ctl)
{
char msgbuf[2048];
int result,len;
-
+
gen_send(sock, "AUTHENTICATE NTLM");
if ((result = gen_recv(sock, msgbuf, sizeof msgbuf)))