summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util.c b/util.c
index ae733eb..77fa004 100644
--- a/util.c
+++ b/util.c
@@ -15,6 +15,7 @@
#include <unistd.h>
#include <errno.h>
#include <stdarg.h>
+#include "debug.h"
void errx(char *format, ...) {
extern int errno;
@@ -53,7 +54,7 @@ char *stringcopy(char *s, int len) {
len = strlen(s);
r = malloc(len + 1);
if (!r)
- errx("stringcopy: malloc failed");
+ debug(DBG_ERR, "stringcopy: malloc failed");
memcpy(r, s, len);
r[len] = '\0';
return r;