use SDL_zeroa at more places where the argument is an array.
This commit is contained in:
1 parent
7a47c292c0
commit
4953e050f5
12 files changed
+18
-18
No files matched your search
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user