NULL termination already happens in strlcpy

This commit is contained in:
LibretroAdmin 2022-08-10 02:45:06 +02:00
parent 13b5ec4b1a
commit 4c4bec11f7

View File

@ -787,10 +787,6 @@ bool patch_content(
* for subsequent patches starts at 1 */
size_t patch_index = 1;
name_ips_indexed[0] = '\0';
name_bps_indexed[0] = '\0';
name_ups_indexed[0] = '\0';
strlcpy(name_ips_indexed, name_ips, (name_ips_len + 1) * sizeof(char));
strlcpy(name_bps_indexed, name_bps, (name_bps_len + 1) * sizeof(char));
strlcpy(name_ups_indexed, name_ups, (name_ups_len + 1) * sizeof(char));