more muttng -> madmutt
[apps/madmutt.git] / lib / debug.c
index beefe12..6034ef9 100644 (file)
@@ -17,6 +17,7 @@
 #include <time.h>
 
 #include <lib-lib/str.h>
+#include <lib-lib/file.h>
 #include "debug.h"
 
 #include "mutt.h"
@@ -40,8 +41,8 @@ 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) {