Log messages are too small to hold entire path

This commit is contained in:
LibretroAdmin 2025-01-13 16:01:16 +01:00
parent 3c3611af6f
commit bd413de842

View File

@ -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),