]> code.citadel.org Git - citadel.git/blobdiff - webcit/tools.c
* Trace file using lprintf() similarly to citserver
[citadel.git] / webcit / tools.c
index cc1bbbedf116da237c3b1b42738df50246b05c48..8bcccaed682a696b5d1703abd6ebec47cc741bdf 100644 (file)
@@ -25,6 +25,7 @@
 #include <signal.h>
 #include <sys/time.h>
 #include "webcit.h"
+#include "webserver.h"
 
 
 char *ascmonths[] = {
@@ -40,7 +41,7 @@ char *ascdays[] = {
 char *safestrncpy(char *dest, const char *src, size_t n)
 {
        if (dest == NULL || src == NULL) {
-               fprintf(stderr, "safestrncpy: NULL argument\n");
+               lprintf(1, "safestrncpy: NULL argument\n");
                abort();
        }
        strncpy(dest, src, n);