From 948f3a78c1b5c60487a8168c8d6a680ff2b541cc Mon Sep 17 00:00:00 2001 From: bsongis Date: Tue, 29 May 2012 20:05:31 +0000 Subject: [PATCH] Logs filenames were wrong! --- src/gruvin9x/logs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gruvin9x/logs.cpp b/src/gruvin9x/logs.cpp index 1a87cac72..0a4940947 100644 --- a/src/gruvin9x/logs.cpp +++ b/src/gruvin9x/logs.cpp @@ -54,7 +54,7 @@ void initLogs() // Set log file model number uint8_t num = g_eeGeneral.currModel + 1; - char *n = &g_logFilename[sizeof(LOGS_PATH) + 3]; + char *n = &g_logFilename[sizeof(LOGS_PATH) + 2]; *n = (char)((num % 10) + '0'); *(--n) = (char)((num / 10) + '0'); @@ -87,7 +87,7 @@ void initLogs() f_close(&g_oLogFile); // bump log file counter (file extension) - n = &g_logFilename[sizeof(LOGS_PATH) + 7]; + n = &g_logFilename[sizeof(LOGS_PATH) + 6]; if (++*n > '9') { *n='0';