diff options
| author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-20 15:59:26 +0000 | 
|---|---|---|
| committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-20 15:59:26 +0000 | 
| commit | fcb6b0b6957003e1db8bca9acf42bddd9c677584 (patch) | |
| tree | b684aa3b8187861f9353d80cd41aeac005a8ac2c | |
| parent | ad7bc7f22d15ac24f844b707933131baf3f1ff3e (diff) | |
| download | fetchmail-fcb6b0b6957003e1db8bca9acf42bddd9c677584.tar.gz fetchmail-fcb6b0b6957003e1db8bca9acf42bddd9c677584.tar.bz2 fetchmail-fcb6b0b6957003e1db8bca9acf42bddd9c677584.zip | |
strncpy -> strlcpy.  Mark 'bogus message count\!' message translatable.
svn path=/trunk/; revision=4150
| -rw-r--r-- | imap.c | 9 | 
1 files changed, 4 insertions, 5 deletions
| @@ -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))) | 
