summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index 55bf3c7..98d6680 100644
--- a/util.c
+++ b/util.c
@@ -23,7 +23,7 @@ char *stringcopy(const char *s, int len) {
len = strlen(s);
r = malloc(len + 1);
if (!r)
- debug(DBG_ERR, "stringcopy: malloc failed");
+ debugx(1, DBG_ERR, "stringcopy: malloc failed");
memcpy(r, s, len);
r[len] = '\0';
return r;