Commit a4db3dbe6499567675bbabaa042bf039fff1980c

Philipp Wiesemann 2017-06-16T23:30:13

nacl: Fixed unnecessary large input text array.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/nacl/SDL_naclevents.c b/src/video/nacl/SDL_naclevents.c
index e11922d..57e222f 100644
--- a/src/video/nacl/SDL_naclevents.c
+++ b/src/video/nacl/SDL_naclevents.c
@@ -329,7 +329,7 @@ void NACL_PumpEvents(_THIS) {
   struct PP_Point location;
   struct PP_Var var;
   const char *str;
-  char text[64];
+  char text[SDL_TEXTINPUTEVENT_TEXT_SIZE];
   Uint32 str_len;
   SDL_VideoData *driverdata = (SDL_VideoData *) _this->driverdata;
   SDL_Mouse *mouse = SDL_GetMouse();