Index: /trunk/Nebulous/nebclient/src/xmalloc.c
===================================================================
--- /trunk/Nebulous/nebclient/src/xmalloc.c	(revision 4504)
+++ /trunk/Nebulous/nebclient/src/xmalloc.c	(revision 4505)
@@ -4,5 +4,5 @@
  * Copyright (C) 2003  Robert Lupton
  *
- * $Id: xmalloc.c,v 1.1 2005-01-16 10:37:59 jhoblitt Exp $
+ * $Id: xmalloc.c,v 1.2 2005-07-07 22:03:16 jhoblitt Exp $
  */
 
@@ -27,4 +27,17 @@
    return(ptr);
 }
+
+void *
+xrealloc(void *ptr, size_t size)
+{
+    void *newptr = realloc(ptr, size);
+
+    if (!newptr) {
+        perror("realloc");
+        exit(EXIT_FAILURE);
+    } 
+
+    return(newptr);
+}
  
 void
Index: /trunk/Nebulous/nebclient/src/xmalloc.h
===================================================================
--- /trunk/Nebulous/nebclient/src/xmalloc.h	(revision 4504)
+++ /trunk/Nebulous/nebclient/src/xmalloc.h	(revision 4505)
@@ -4,5 +4,5 @@
  * Copyright (C) 2003  Robert Lupton
  *
- * $Id: xmalloc.h,v 1.2 2005-01-16 19:49:09 jhoblitt Exp $
+ * $Id: xmalloc.h,v 1.3 2005-07-07 22:03:16 jhoblitt Exp $
  */
 
@@ -12,4 +12,7 @@
 void *
 xmalloc(size_t n);
+
+void *
+xrealloc(void *ptr, size_t size);
  
 void
