From ce01c08d8c03e404ab4f6f0b0ddd873d82da5ab3 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 10 Aug 2025 22:52:22 +0200 Subject: [PATCH] Media history manager: Attempt to do the same. --- src/qt/qt_mediahistorymanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_mediahistorymanager.cpp b/src/qt/qt_mediahistorymanager.cpp index 724616d1c..47ff7b4b5 100644 --- a/src/qt/qt_mediahistorymanager.cpp +++ b/src/qt/qt_mediahistorymanager.cpp @@ -350,7 +350,7 @@ MediaHistoryManager::removeMissingImages(device_index_list_t &device_history) char temp[MAX_IMAGE_PATH_LEN * 2] = { 0 }; if (checked_path.left(8) == "ioctl://") { - strncpy(temp, checked_path.toUtf8().data(), sizeof(temp)); + strncpy(temp, checked_path.toUtf8().data(), sizeof(temp) - 10); temp[sizeof(temp) - 1] = '\0'; } else { QString path_only;