Media history manager: Attempt to do the same.

This commit is contained in:
OBattler
2025-08-10 22:52:22 +02:00
parent 84d50733d1
commit ce01c08d8c

View File

@@ -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;