summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorvenaas <venaas>2007-05-03 14:42:40 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2007-05-03 14:42:40 +0000
commit414b916d07f4a1b475d53627092d24cd5a2a0517 (patch)
tree79ad9b899e9a2b740d0883049238024100bb506a /util.c
parent3837212a51ac4ae4c6a76ee91c9301add8d18ee5 (diff)
using debug() some more places
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@70 e88ac4ed-0b26-0410-9574-a7f39faa03bf
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;