Browse Source

Apply CopyUtf8() to SelheroCatToName()

pull/4930/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
6b422d2c5a
  1. 5
      Source/DiabloUI/diabloui.cpp

5
Source/DiabloUI/diabloui.cpp

@ -280,7 +280,10 @@ void UiFocusPageDown()
void SelheroCatToName(const char *inBuf, char *outBuf, int cnt)
{
strncat(outBuf, inBuf, cnt - strlen(outBuf));
size_t outLen = strlen(outBuf);
char *dest = outBuf + outLen;
size_t destCount = cnt - outLen;
CopyUtf8(dest, inBuf, destCount);
}
bool HandleMenuAction(MenuAction menuAction)

Loading…
Cancel
Save