X-Git-Url: https://git.xonotic.org/?p=xonotic%2Fgmqcc.git;a=blobdiff_plain;f=opts.c;h=570b5789116f68cc9b435e5e0d30d5b9c809e880;hp=27d6a560473ead2f183a8adbeffc95c3fd470901;hb=151606e25558ec8f8f211db5aba4c4fa66948731;hpb=14ef6a1c4221115d1d3970d84d1565927aeffb0a;ds=sidebyside diff --git a/opts.c b/opts.c index 27d6a56..570b578 100644 --- a/opts.c +++ b/opts.c @@ -251,7 +251,7 @@ static size_t opts_ini_parse ( /* section found */ if (*(parse_end = opts_ini_next(parse_beg + 1, ']')) == ']') { * parse_end = '\0'; /* terminate bro */ - util_strncpy(section_data, parse_beg + 1, sizeof(section_data)); + platform_strncpy(section_data, parse_beg + 1, sizeof(section_data)); section_data[sizeof(section_data) - 1] = '\0'; *oldname_data = '\0'; } else if (!error) { @@ -272,7 +272,7 @@ static size_t opts_ini_parse ( opts_ini_rstrip(read_value); /* valid name value pair, lets call down to handler */ - util_strncpy(oldname_data, read_name, sizeof(oldname_data)); + platform_strncpy(oldname_data, read_name, sizeof(oldname_data)); oldname_data[sizeof(oldname_data) - 1] ='\0'; if ((*errorhandle = loadhandle(section_data, read_name, read_value)) && !error)