aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2010-04-01 10:18:35 +0200
committerMatthias Andree <matthias.andree@gmx.de>2010-04-01 10:18:35 +0200
commit3b6e696c42727d8f8579e085053c4beaef441587 (patch)
tree72c6ca39224d006f07d6d6535d14b1631a387b15 /pop3.c
parent6a7abb1f16e09630c174eaac165af945f8998c24 (diff)
downloadfetchmail-3b6e696c42727d8f8579e085053c4beaef441587.tar.gz
fetchmail-3b6e696c42727d8f8579e085053c4beaef441587.tar.bz2
fetchmail-3b6e696c42727d8f8579e085053c4beaef441587.zip
Fix xmalloc type casts in SDPS mode.
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pop3.c b/pop3.c
index d9bc0000..90d91bf2 100644
--- a/pop3.c
+++ b/pop3.c
@@ -1289,12 +1289,12 @@ static int pop3_fetch(int sock, struct query *ctl, int number, int *lenp)
* as a workaround. */
if (strspn(buf, " \t") == strlen(buf))
strcpy(buf, "<>");
- sdps_envfrom = xmalloc(strlen(buf)+1);
+ sdps_envfrom = (char *)xmalloc(strlen(buf)+1);
strcpy(sdps_envfrom,buf);
break;
case 5:
/* Wrap address with To: <> so nxtaddr() likes it */
- sdps_envto = xmalloc(strlen(buf)+7);
+ sdps_envto = (char *)xmalloc(strlen(buf)+7);
sprintf(sdps_envto,"To: <%s>",buf);
break;
}