parent
bbc93a9426
commit
d6b27324f4
|
@ -1453,6 +1453,9 @@ bool valapifromstring(const char* name, duint* value, int* value_size, bool prin
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
strncpy_s(modname, name, _TRUNCATE);
|
strncpy_s(modname, name, _TRUNCATE);
|
||||||
|
auto idx = apiname - name;
|
||||||
|
if(idx < _countof(modname))
|
||||||
|
modname[idx] = '\0';
|
||||||
}
|
}
|
||||||
apiname++;
|
apiname++;
|
||||||
if(!strlen(apiname))
|
if(!strlen(apiname))
|
||||||
|
|
Loading…
Reference in New Issue