mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Valgrind warning fix
This commit is contained in:
parent
5ff5ae7294
commit
b302e4dbbb
1 changed files with 2 additions and 1 deletions
|
@ -1339,7 +1339,8 @@ void Graphics::drawmenu( int cr, int cg, int cb, bool levelmenu /*= false*/ )
|
|||
{
|
||||
// Uppercase the text
|
||||
// FIXME: This isn't UTF-8 aware!
|
||||
for (size_t ii = 0; ii < SDL_arraysize(tempstring); ii++)
|
||||
size_t templen = SDL_strlen(tempstring);
|
||||
for (size_t ii = 0; ii < templen; ii++)
|
||||
{
|
||||
tempstring[ii] = SDL_toupper(tempstring[ii]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue