X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=lib%2Fdebug.c;h=6034ef9ab01c7fb60b6eb66951599ec8bdde5af2;hp=5136175a1b7c9081f8cfeebd83fe1baea0919503;hb=5cfa41634d9a2c2e8bcf392ff0f2ee0c93794b37;hpb=bad8211c28d4b229878e0264012009493db48da5 diff --git a/lib/debug.c b/lib/debug.c index 5136175..6034ef9 100644 --- a/lib/debug.c +++ b/lib/debug.c @@ -16,11 +16,12 @@ #include #include +#include +#include #include "debug.h" #include "mutt.h" #include "globals.h" -#include "str.h" short DebugLevel = -1; FILE* DebugFile = NULL; @@ -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) {