Commit a725efa4bc90c7b5d098db81c37fe979a9756a4b

Philipp Wiesemann 2017-06-15T23:30:50

linux: Fixed using wrong constant for input text size.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/core/linux/SDL_ibus.c b/src/core/linux/SDL_ibus.c
index 9a39d51..eb5a5de 100644
--- a/src/core/linux/SDL_ibus.c
+++ b/src/core/linux/SDL_ibus.c
@@ -120,7 +120,7 @@ IBus_MessageHandler(DBusConnection *conn, DBusMessage *msg, void *user_data)
         
         text = IBus_GetVariantText(conn, &iter, dbus);
         if (text && *text) {
-            char buf[SDL_TEXTEDITINGEVENT_TEXT_SIZE];
+            char buf[SDL_TEXTINPUTEVENT_TEXT_SIZE];
             size_t text_bytes = SDL_strlen(text), i = 0;
             
             while (i < text_bytes) {