Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
applied the saner patch (removed the pathetic one)
[dwm.git]
/
util.c
diff --git
a/util.c
b/util.c
index
4cc748f
..
2414b39
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-40,6
+40,15
@@
eprint(const char *errstr, ...)
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)
{