Skip to content

Commit

Permalink
Dehardcode size parameter for strlcpy call
Browse files Browse the repository at this point in the history
  • Loading branch information
LibretroAdmin committed Sep 13, 2024
1 parent 9135065 commit bd8ed67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gfx/video_shader_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ static void video_shader_replace_wildcards(char *inout_absolute_path,
replace_text,
replace_len);

strlcpy(replaced_path, replace_output, PATH_MAX_LENGTH);
strlcpy(replaced_path, replace_output, sizeof(replaced_path));

free(replace_output);
}
Expand Down

0 comments on commit bd8ed67

Please sign in to comment.