1
0
Fork 0

DBG: fix bugfix

closes #2206
This commit is contained in:
Duncan Ogilvie 2019-08-22 17:50:30 +02:00
parent bbc93a9426
commit d6b27324f4
1 changed files with 3 additions and 0 deletions

View File

@ -1453,6 +1453,9 @@ bool valapifromstring(const char* name, duint* value, int* value_size, bool prin
else
{
strncpy_s(modname, name, _TRUNCATE);
auto idx = apiname - name;
if(idx < _countof(modname))
modname[idx] = '\0';
}
apiname++;
if(!strlen(apiname))