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 wrap: on
line diff
--- a/src/readsock.c	Thu May 06 11:44:43 2010 +0200
+++ b/src/readsock.c	Thu May 06 11:50:40 2010 +0200
@@ -149,7 +149,7 @@
 	}
 
 	if (!*pbuf)
-		*pbuf = malloc(size);
+		*pbuf = g_malloc(size);
 	buf = *pbuf;
 
 	while (1) {