Mercurial > sdl-ios-xcode
changeset 1776:ed39aa7383ea
SDL_strncpy doesn't exist
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 08 May 2006 03:49:51 +0000 |
parents | 5572e4204f36 |
children | 402d5ff1cf88 |
files | src/video/fbcon/SDL_fbevents.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fbevents.c Mon May 08 02:09:34 2006 +0000 +++ b/src/video/fbcon/SDL_fbevents.c Mon May 08 03:49:51 2006 +0000 @@ -400,7 +400,7 @@ t = arg + arglen; s = SDL_strchr(t, ' '); if (s) *s = 0; - SDL_strncpy(raw_proto, t, SDL_arraysize(raw_proto)); + SDL_strlcpy(raw_proto, t, SDL_arraysize(raw_proto)); if (s) *s = ' '; } if ( SDL_strncmp(arg, "-R", 2) == 0 ) { @@ -409,7 +409,7 @@ t = arg + 2; s = SDL_strchr(t, ' '); if (s) *s = 0; - SDL_strncpy(repeat_proto, t, SDL_arraysize(repeat_proto)); + SDL_strlcpy(repeat_proto, t, SDL_arraysize(repeat_proto)); if (s) *s = ' '; } len -= arglen;