gs-effect-*: Replace strnlen_s with strnlen

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2020-04-02 16:21:42 +02:00
parent f87e7859c4
commit 451d31546f
3 changed files with 3 additions and 3 deletions

View file

@ -107,7 +107,7 @@ try {
std::string gs::effect_parameter::get_name()
{
const char* name_c = get()->name;
size_t name_len = strnlen_s(name_c, 256);
size_t name_len = strnlen(name_c, 256);
return name_c ? std::string(name_c, name_c + name_len) : std::string();
}

View file

@ -32,7 +32,7 @@ gs::effect_pass::~effect_pass() {}
std::string gs::effect_pass::name()
{
const char* name_c = get()->name;
size_t name_len = strnlen_s(name_c, 256);
size_t name_len = strnlen(name_c, 256);
return name_c ? std::string(name_c, name_c + name_len) : std::string();
}

View file

@ -34,7 +34,7 @@ gs::effect_technique::~effect_technique() {}
std::string gs::effect_technique::name()
{
const char* name_c = get()->name;
size_t name_len = strnlen_s(name_c, 256);
size_t name_len = strnlen(name_c, 256);
return name_c ? std::string(name_c, name_c + name_len) : std::string();
}