]> code.citadel.org Git - citadel.git/blobdiff - citadel/tools.c
* Full-screen curses support for Citadel text client
[citadel.git] / citadel / tools.c
index 1fd5c1f0e00b0f11ca0323815d152de66304a9c4..24c34ab5d965f4c106345ae58338c4c92d8331ee 100644 (file)
 #include "tools.h"
 #include "citadel.h"
 
+#ifdef CIT_CLIENT
+#include "screen.h"
+#else
+extern int err_printf(char *fmt, ...);
+#endif
+
 #define TRUE  1
 #define FALSE 0
 
@@ -39,7 +45,7 @@ static byte dtable[256];            /* base64 encode / decode table */
 char *safestrncpy(char *dest, const char *src, size_t n)
 {
        if (dest == NULL || src == NULL) {
-               fprintf(stderr, "safestrncpy: NULL argument\n");
+               err_printf("safestrncpy: NULL argument\n");
                abort();
        }
        strncpy(dest, src, n);