From eae0b18dbd096a393147472495fa4388a742815a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 27 Jun 2009 10:54:34 +0200 Subject: [PATCH] Use better error messages for s* (Thanks Curtis) --- src/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }