SDL_strncpy doesn't exist
authorSam Lantinga <slouken@libsdl.org>
Mon, 08 May 2006 03:49:51 +0000
changeset 1776ed39aa7383ea
parent 1775 5572e4204f36
child 1777 402d5ff1cf88
SDL_strncpy doesn't exist
src/video/fbcon/SDL_fbevents.c
     1.1 --- a/src/video/fbcon/SDL_fbevents.c	Mon May 08 02:09:34 2006 +0000
     1.2 +++ b/src/video/fbcon/SDL_fbevents.c	Mon May 08 03:49:51 2006 +0000
     1.3 @@ -400,7 +400,7 @@
     1.4  						t = arg + arglen;
     1.5  						s = SDL_strchr(t, ' ');
     1.6  						if (s) *s = 0;
     1.7 -						SDL_strncpy(raw_proto, t, SDL_arraysize(raw_proto));
     1.8 +						SDL_strlcpy(raw_proto, t, SDL_arraysize(raw_proto));
     1.9  						if (s) *s = ' ';
    1.10  					}
    1.11  					if ( SDL_strncmp(arg, "-R", 2) == 0 ) {
    1.12 @@ -409,7 +409,7 @@
    1.13  						t = arg + 2;
    1.14  						s = SDL_strchr(t, ' ');
    1.15  						if (s) *s = 0;
    1.16 -						SDL_strncpy(repeat_proto, t, SDL_arraysize(repeat_proto));
    1.17 +						SDL_strlcpy(repeat_proto, t, SDL_arraysize(repeat_proto));
    1.18  						if (s) *s = ' ';
    1.19  					}
    1.20  					len -= arglen;