util.c
changeset 270 dacd3f3c5823
parent 217 7b63c375d28c
child 317 45af6a8a0cbf
--- a/util.c	Mon Aug 14 08:52:15 2006 +0200
+++ b/util.c	Mon Aug 14 10:18:24 2006 +0200
@@ -40,6 +40,15 @@
 	exit(EXIT_FAILURE);
 }
 
+void *
+erealloc(void *ptr, unsigned int size)
+{
+	void *res = realloc(ptr, size);
+	if(!res)
+		bad_malloc(size);
+	return res;
+}
+
 void
 spawn(Arg *arg)
 {