Mercurial > sdl-ios-xcode
diff src/video/riscos/SDL_riscosFullScreenVideo.c @ 1379:c0a74f199ecf
Use only safe string functions
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sun, 19 Feb 2006 23:46:34 +0000 |
parents | 19418e4422cb |
children | d910939febfa |
line wrap: on
line diff
--- a/src/video/riscos/SDL_riscosFullScreenVideo.c Sun Feb 19 23:38:57 2006 +0000 +++ b/src/video/riscos/SDL_riscosFullScreenVideo.c Sun Feb 19 23:46:34 2006 +0000 @@ -657,8 +657,7 @@ /** Store caption in case this is called before we create a window */ void FULLSCREEN_SetWMCaption(_THIS, const char *title, const char *icon) { - SDL_strncpy(this->hidden->title, title, 255); - this->hidden->title[255] = 0; + SDL_strlcpy(this->hidden->title, title, SDL_arraysize(this->hidden->title)); } /* Set screen mode