src/events/SDL_keyboard.c
changeset 4763 518d1679d2d0
parent 4762 833a225613e2
parent 4755 436183eb30c8
child 4882 e725a6a60c32
     1.1 --- a/src/events/SDL_keyboard.c	Sun Aug 22 12:35:34 2010 -0700
     1.2 +++ b/src/events/SDL_keyboard.c	Sun Aug 22 12:39:27 2010 -0700
     1.3 @@ -778,7 +778,7 @@
     1.4          SDL_Event event;
     1.5          event.text.type = SDL_TEXTINPUT;
     1.6          event.text.windowID = keyboard->focus ? keyboard->focus->id : 0;
     1.7 -        SDL_strlcpy(event.text.text, text, SDL_arraysize(event.text.text));
     1.8 +        SDL_utf8strlcpy(event.text.text, text, SDL_arraysize(event.text.text));
     1.9          event.text.windowID = keyboard->focus ? keyboard->focus->id : 0;
    1.10          posted = (SDL_PushEvent(&event) > 0);
    1.11      }
    1.12 @@ -799,7 +799,7 @@
    1.13          event.edit.windowID = keyboard->focus ? keyboard->focus->id : 0;
    1.14          event.edit.start = start;
    1.15          event.edit.length = length;
    1.16 -        SDL_strlcpy(event.edit.text, text, SDL_arraysize(event.edit.text));
    1.17 +        SDL_utf8strlcpy(event.edit.text, text, SDL_arraysize(event.edit.text));
    1.18          posted = (SDL_PushEvent(&event) > 0);
    1.19      }
    1.20      return (posted);