mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-17 22:10:10 +00:00
gs-effect-*: Replace strnlen_s with strnlen
This commit is contained in:
parent
f87e7859c4
commit
451d31546f
3 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue