From: Michael Stapelberg Date: Sat, 27 Jun 2009 08:54:34 +0000 (+0200) Subject: Use better error messages for s* (Thanks Curtis) X-Git-Tag: 3.c~68 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eae0b18dbd096a393147472495fa4388a742815a;p=i3%2Fi3 Use better error messages for s* (Thanks Curtis) --- diff --git a/src/util.c b/src/util.c index bccb9941..3a3890f1 100644 --- a/src/util.c +++ b/src/util.c @@ -83,19 +83,19 @@ void die(char *fmt, ...) { */ void *smalloc(size_t size) { void *result = malloc(size); - exit_if_null(result, "Too less memory for malloc(%d)\n", size); + exit_if_null(result, "Error: out of memory (malloc(%d))\n", size); return result; } void *scalloc(size_t size) { void *result = calloc(size, 1); - exit_if_null(result, "Too less memory for calloc(%d)\n", size); + exit_if_null(result, "Error: out of memory (calloc(%d))\n", size); return result; } char *sstrdup(const char *str) { char *result = strdup(str); - exit_if_null(result, "Too less memory for strdup()\n"); + exit_if_null(result, "Error: out of memory (strdup())\n"); return result; }