Explorar o código

nacl: Fixed unnecessary large input text array.

Philipp Wiesemann %!s(int64=8) %!d(string=hai) anos
pai
achega
a4db3dbe64
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/video/nacl/SDL_naclevents.c

+ 1 - 1
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();