Skip to content

Commit

Permalink
Log messages are too small to hold entire path
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Jan 13, 2025
1 parent 3c3611a commit bd413de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/task_content.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit bd413de

Please sign in to comment.