Added SDL_utf8strlcpy to copy at UTF-8 character boundaries.

Changed SDL_SendKeyboardText and SDL_SendEditingText to use SDL_utf8strlcpy.
This commit is contained in:
dewyatt
2010-07-13 15:05:45 -04:00
parent 5155fd21d2
commit d3a558d55e
3 changed files with 52 additions and 2 deletions

View File

@@ -470,6 +470,9 @@ extern DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src,
size_t maxlen);
#endif
extern DECLSPEC size_t SDLCALL SDL_utf8strlcpy(char *dst, const char *src,
size_t dst_bytes);
#ifdef HAVE_STRLCAT
#define SDL_strlcat strlcat
#else