use SDL_zeroa at more places where the argument is an array.

This commit is contained in:
Ozkan Sezer
2019-07-31 05:11:40 +03:00
parent 7a47c292c0
commit 4953e050f5
12 changed files with 18 additions and 18 deletions

View File

@@ -285,7 +285,7 @@ private:
ssize_t count;
if (msg->FindData("key-utf8", B_INT8_TYPE, (const void**)&keyUtf8, &count) == B_OK) {
char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
SDL_zero(text);
SDL_zeroa(text);
SDL_memcpy(text, keyUtf8, count);
SDL_SendKeyboardText(text);
}