From 3b6e696c42727d8f8579e085053c4beaef441587 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 1 Apr 2010 10:18:35 +0200 Subject: Fix xmalloc type casts in SDPS mode. --- pop3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pop3.c') 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; } -- cgit v1.2.3