Dehardcode size parameter for strlcpy call
This commit is contained in:
parent
9135065bfc
commit
bd8ed67205
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue