comparison 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
comparison
equal deleted inserted replaced
1378:dc0e13e7e1ae 1379:c0a74f199ecf
655 } 655 }
656 656
657 /** Store caption in case this is called before we create a window */ 657 /** Store caption in case this is called before we create a window */
658 void FULLSCREEN_SetWMCaption(_THIS, const char *title, const char *icon) 658 void FULLSCREEN_SetWMCaption(_THIS, const char *title, const char *icon)
659 { 659 {
660 SDL_strncpy(this->hidden->title, title, 255); 660 SDL_strlcpy(this->hidden->title, title, SDL_arraysize(this->hidden->title));
661 this->hidden->title[255] = 0;
662 } 661 }
663 662
664 /* Set screen mode 663 /* Set screen mode
665 * 664 *
666 * Returns 1 if mode is set ok, otherwise 0 665 * Returns 1 if mode is set ok, otherwise 0