1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Some additional sprintf and std::string cleanup

This commit is contained in:
2014-01-10 19:11:20 -08:00
parent 7de24157a5
commit abe3d465b3
10 changed files with 70 additions and 115 deletions

View File

@ -196,7 +196,7 @@ public:
plClothingElement *element = tileset->fElements.Get(i);
SendMessage(GetDlgItem(hWnd, plClothingMtl::TextConstants[2 * i]),
WM_SETTEXT, NULL, (LPARAM)element->fName.c_str());
sprintf(buff, "(%d, %d)", element->fWidth, element->fHeight);
snprintf(buff, arrsize(buff), "(%d, %d)", element->fWidth, element->fHeight);
SendMessage(GetDlgItem(hWnd, plClothingMtl::TextConstants[2 * i + 1]),
WM_SETTEXT, NULL, (LPARAM)buff);