Skip to content

Commit

Permalink
SDL_strncpy doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 8, 2006
1 parent 456ca4f commit ac8fec0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/fbcon/SDL_fbevents.c
Expand Up @@ -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 ) {
Expand All @@ -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;
Expand Down

0 comments on commit ac8fec0

Please sign in to comment.