X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib%2Fdebug.c;h=4d4d393a1a5e6bc04b517595a164f796e56ac8cd;hp=beefe129f0e7a3adb353a509812d7416469cb505;hb=801673291bea7eb323063711349a820f6ea34bff;hpb=7f7a0be369840b290248e5b0302beb447fa1b3cd diff --git a/lib/debug.c b/lib/debug.c index beefe12..4d4d393 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -17,6 +17,7 @@ #include #include +#include #include "debug.h" #include "mutt.h" @@ -40,15 +41,15 @@ void debug_start (const char* basedir) { return; /* rotate the old debug logs */ for (i = 3; i >= 0; i--) { - snprintf (buf, sizeof (buf), "%s/.muttngdebug%d", NONULL (basedir), i); - snprintf (buf2, sizeof (buf2), "%s/.muttngdebug%d", NONULL (basedir), i + 1); + snprintf (buf, sizeof (buf), "%s/.madmuttdebug%d", NONULL (basedir), i); + snprintf (buf2, sizeof (buf2), "%s/.madmuttdebug%d", NONULL (basedir), i + 1); rename (buf, buf2); } if ((DebugFile = safe_fopen (buf, "w")) != NULL) { t = time (NULL); setbuf (DebugFile, NULL); /* don't buffer the debugging output! */ fprintf (DebugFile, - "Mutt-ng %s started at %s\nDebugging at level %d\n\n", + "Madmutt %s started at %s\nDebugging at level %d\n\n", MUTT_VERSION, asctime (localtime (&t)), DebugLevel); } }