diff --git a/troposphere/daybreak/source/ui.cpp b/troposphere/daybreak/source/ui.cpp index 693063ea6..1e63f8811 100644 --- a/troposphere/daybreak/source/ui.cpp +++ b/troposphere/daybreak/source/ui.cpp @@ -1277,7 +1277,7 @@ namespace dbk { if (InitializeMenu(screen_width, screen_height)) { /* Set the update path. */ - strncpy(g_update_path, update_path, sizeof(g_update_path)); + strncpy(g_update_path, update_path, sizeof(g_update_path)-1); /* Change the menu. */ ChangeMenu(std::make_shared(g_current_menu));