yet even more GetChars calls added.

This commit is contained in:
Christoph Oelckers 2023-10-07 23:29:24 +02:00
commit 7a5a2858a2
46 changed files with 190 additions and 190 deletions

View file

@ -1209,7 +1209,7 @@ bool DMenuItemBase::GetString(int i, char *s, int len)
FString retstr;
VMReturn ret[2]; ret[0].IntAt(&retval); ret[1].StringAt(&retstr);
VMCall(func, params, countof(params), ret, 2);
strncpy(s, retstr, len);
strncpy(s, retstr.GetChars(), len);
return !!retval;
}
return false;