src/video/ataricommon/SDL_atarigl.c
changeset 1336 3692456e7b0f
parent 1239 cbdb2c156aca
child 1338 604d73db6802
     1.1 --- a/src/video/ataricommon/SDL_atarigl.c	Mon Feb 06 17:28:04 2006 +0000
     1.2 +++ b/src/video/ataricommon/SDL_atarigl.c	Tue Feb 07 06:59:48 2006 +0000
     1.3 @@ -141,7 +141,7 @@
     1.4  	handle = SDL_LoadObject(path);
     1.5  	if (handle == NULL) {
     1.6  		/* Try to load another one */
     1.7 -		path = getenv("SDL_VIDEO_GL_DRIVER");
     1.8 +		path = SDL_getenv("SDL_VIDEO_GL_DRIVER");
     1.9  		if ( path != NULL ) {
    1.10  			handle = SDL_LoadObject(path);
    1.11  		}
    1.12 @@ -223,10 +223,10 @@
    1.13  
    1.14  	this->gl_config.dll_handle = handle;
    1.15  	if ( path ) {
    1.16 -		strncpy(this->gl_config.driver_path, path,
    1.17 +		SDL_strncpy(this->gl_config.driver_path, path,
    1.18  			sizeof(this->gl_config.driver_path)-1);
    1.19  	} else {
    1.20 -		strcpy(this->gl_config.driver_path, "");
    1.21 +		SDL_strcpy(this->gl_config.driver_path, "");
    1.22  	}
    1.23  
    1.24  #endif
    1.25 @@ -697,7 +697,7 @@
    1.26  	}
    1.27  
    1.28  	for (y=0; y<surface->h; y++) {
    1.29 -		memcpy(dstline, srcline, srcpitch);
    1.30 +		SDL_memcpy(dstline, srcline, srcpitch);
    1.31  
    1.32  		srcline += srcpitch;
    1.33  		dstline += dstpitch;