Browse Source

Apply CopyUtf8() to SelheroCatToName()

pull/4685/head
staphen 4 years ago committed by Anders Jenbo
parent
commit
56e8dbfec5
  1. 5
      Source/DiabloUI/diabloui.cpp

5
Source/DiabloUI/diabloui.cpp

@ -285,7 +285,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