From ac8fec07a9d3a592aff32341f3a575f818ab2d61 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 8 May 2006 03:49:51 +0000 Subject: [PATCH] SDL_strncpy doesn't exist --- src/video/fbcon/SDL_fbevents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/fbcon/SDL_fbevents.c b/src/video/fbcon/SDL_fbevents.c index 2e84247b2..8ffe67069 100644 --- a/src/video/fbcon/SDL_fbevents.c +++ b/src/video/fbcon/SDL_fbevents.c @@ -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;