From 93eed549d319b55ac84ae01990f34d5f8807b1e1 Mon Sep 17 00:00:00 2001 From: TinkerGnome Date: Wed, 30 Mar 2016 22:06:16 +0200 Subject: [PATCH] fix buffer overflow in runtime stats menu --- Marlin/UltiLCD2_menu_maintenance.cpp | 2 +- Marlin/package.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/UltiLCD2_menu_maintenance.cpp b/Marlin/UltiLCD2_menu_maintenance.cpp index 47f0dfeb7..46d0246dd 100644 --- a/Marlin/UltiLCD2_menu_maintenance.cpp +++ b/Marlin/UltiLCD2_menu_maintenance.cpp @@ -534,7 +534,7 @@ static void lcd_menu_advanced_stats() { lcd_info_screen(NULL, lcd_change_to_previous_menu, PSTR("Return")); lcd_lib_draw_string_centerP(10, PSTR("Machine on for:")); - char buffer[16] = {0}; + char buffer[24] = {0}; char* c = int_to_string(lifetime_minutes / 60, buffer, PSTR(":")); if (lifetime_minutes % 60 < 10) *c++ = '0'; diff --git a/Marlin/package.sh b/Marlin/package.sh index 4df99ac08..52ed6cbae 100644 --- a/Marlin/package.sh +++ b/Marlin/package.sh @@ -8,7 +8,7 @@ ############################# ##Which version name are we appending to the final archive -export BUILD_NAME=16.03 +export BUILD_NAME=16.03.1 ############################# # Actual build script