comparison src/video/riscos/SDL_wimpvideo.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
382 382
383 void WIMP_SetWMCaption(_THIS, const char *title, const char *icon) 383 void WIMP_SetWMCaption(_THIS, const char *title, const char *icon)
384 { 384 {
385 _kernel_swi_regs regs; 385 _kernel_swi_regs regs;
386 386
387 SDL_strncpy(this->hidden->title, title, 255); 387 SDL_strlcpy(this->hidden->title, title, SDL_arraysize(this->hidden->title));
388 this->hidden->title[255] = 0;
389 388
390 if (RISCOS_GetWimpVersion() < 380) 389 if (RISCOS_GetWimpVersion() < 380)
391 { 390 {
392 int block[6]; 391 int block[6];
393 392