SDL_strncpy doesn't exist

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401735
This commit is contained in:
Sam Lantinga 2006-05-08 03:49:51 +00:00
parent e869c2f9b8
commit c9fe6a7e45

View file

@ -400,7 +400,7 @@ static int gpm_available(char *proto, size_t protolen)
t = arg + arglen; t = arg + arglen;
s = SDL_strchr(t, ' '); s = SDL_strchr(t, ' ');
if (s) *s = 0; 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 (s) *s = ' ';
} }
if ( SDL_strncmp(arg, "-R", 2) == 0 ) { if ( SDL_strncmp(arg, "-R", 2) == 0 ) {
@ -409,7 +409,7 @@ static int gpm_available(char *proto, size_t protolen)
t = arg + 2; t = arg + 2;
s = SDL_strchr(t, ' '); s = SDL_strchr(t, ' ');
if (s) *s = 0; 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 = ' '; if (s) *s = ' ';
} }
len -= arglen; len -= arglen;