masqmail

diff src/readsock.c @ 27:3654c502a4df

g_malloc terminates the program on failure automatically
author meillo@marmaro.de
date Thu, 06 May 2010 11:50:40 +0200
parents f671821d8222
children 41958685480d
line diff
     1.1 --- a/src/readsock.c	Thu May 06 11:44:43 2010 +0200
     1.2 +++ b/src/readsock.c	Thu May 06 11:50:40 2010 +0200
     1.3 @@ -149,7 +149,7 @@
     1.4  	}
     1.5  
     1.6  	if (!*pbuf)
     1.7 -		*pbuf = malloc(size);
     1.8 +		*pbuf = g_malloc(size);
     1.9  	buf = *pbuf;
    1.10  
    1.11  	while (1) {