--- 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)
{