From bd413de842bdf7770b2445618c187c64b1d2e43b Mon Sep 17 00:00:00 2001 From: LibretroAdmin Date: Mon, 13 Jan 2025 16:01:16 +0100 Subject: [PATCH] Log messages are too small to hold entire path --- tasks/task_content.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/task_content.c b/tasks/task_content.c index 603e0f3fd3b..448cb165f1d 100644 --- a/tasks/task_content.c +++ b/tasks/task_content.c @@ -789,7 +789,7 @@ static bool content_file_extract_from_archive( NULL : content_ctx->directory_cache, tmp_path, sizeof(tmp_path))) { - char msg[128]; + char msg[PATH_MAX_LENGTH]; snprintf(msg, sizeof(msg), "%s: \"%s\".\n", msg_hash_to_str(MSG_FAILED_TO_EXTRACT_CONTENT_FROM_COMPRESSED_FILE), *content_path); @@ -993,7 +993,7 @@ static bool content_file_load( content_compressed, i, first_content_type, &content_data, &content_size)) { - char msg[128]; + char msg[PATH_MAX_LENGTH]; snprintf(msg, sizeof(msg), "%s \"%s\"\n", msg_hash_to_str(MSG_COULD_NOT_READ_CONTENT_FILE), content_path); @@ -1073,7 +1073,7 @@ static bool content_file_load( * (This disclaimer is out dated but I don't want to remove it)*/ if (!CopyFileFromAppW(wcontent_path, wnew_path, false)) { - char msg[128]; + char msg[PATH_MAX_LENGTH]; /* TODO/FIXME - localize */ snprintf(msg, sizeof(msg), "%s \"%s\". (during copy read or write)\n", msg_hash_to_str(MSG_COULD_NOT_READ_CONTENT_FILE),