diff options
Diffstat (limited to 'functions.c')
-rw-r--r-- | functions.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.c b/functions.c index 13b910b..dbcc54e 100644 --- a/functions.c +++ b/functions.c @@ -52,6 +52,7 @@ void updategreetingnick(char *greeting, char *greetingnum, char *newnick, char * char greetingtmp2[MAXDATASIZE]; if (!snprintf(greetingtmp2, MAXDATASIZE, "%s%s %s", greetingtmp, newnick, greeting + pos + strlen(oldnick) + 1)) { fprintf(stderr, "Error while preparing new greeting string!\n"); + debugprint(DEBUG_CRIT, "Error while preparing new greeting string!\n"); exit(1); } @@ -80,8 +81,7 @@ void debugprint(int level, char *format, ...) { int bytes = 0; fp = fopen(debugpath, "a"); if ((bytes = vfprintf(fp, format, args)) < 0) { - printf("error: could not write to debug file.\n"); - exit(1); + debugprint(DEBUG_CRIT, "error: could not write to debug file.\n"); } fclose(fp); |