mirror of
https://github.com/yawut/SDL.git
synced 2026-06-23 21:11:22 -05:00
SDL_strncpy doesn't exist
This commit is contained in:
parent
fe3cf1843c
commit
0456bd7dc9
|
|
@ -400,7 +400,7 @@ static int gpm_available(char *proto, size_t protolen)
|
|||
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 @@ static int gpm_available(char *proto, size_t protolen)
|
|||
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user