]> mj.ucw.cz Git - checkmail.git/blobdiff - util.c
Updated maintainer scripts
[checkmail.git] / util.c
diff --git a/util.c b/util.c
index e211755461be58e75375b95739b9a1ce68c391c3..82067997b5242f34e7491d0f103ce6793e64c675 100644 (file)
--- a/util.c
+++ b/util.c
@@ -47,6 +47,15 @@ xmalloc(uns size)
   return buf;
 }
 
+void *
+xrealloc(void *old, uns size)
+{
+  void *buf = realloc(old, size);
+  if (!buf)
+    die("Unable to allocate %d bytes of memory", size);
+  return buf;
+}
+
 char *
 xstrdup(char *s)
 {