src/video/ataricommon/SDL_atarigl.c
changeset 1379 c0a74f199ecf
parent 1361 19418e4422cb
child 1402 d910939febfa
     1.1 --- a/src/video/ataricommon/SDL_atarigl.c	Sun Feb 19 23:38:57 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_atarigl.c	Sun Feb 19 23:46:34 2006 +0000
     1.3 @@ -219,10 +219,10 @@
     1.4  
     1.5  	this->gl_config.dll_handle = handle;
     1.6  	if ( path ) {
     1.7 -		SDL_strncpy(this->gl_config.driver_path, path,
     1.8 -			sizeof(this->gl_config.driver_path)-1);
     1.9 +		SDL_strlcpy(this->gl_config.driver_path, path,
    1.10 +			SDL_arraysize(this->gl_config.driver_path));
    1.11  	} else {
    1.12 -		SDL_strcpy(this->gl_config.driver_path, "");
    1.13 +		*this->gl_config.driver_path = '\0';
    1.14  	}
    1.15  
    1.16  #endif