comparison src/video/ataricommon/SDL_atarigl.c @ 1379:c0a74f199ecf

Use only safe string functions
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Feb 2006 23:46:34 +0000
parents 19418e4422cb
children d910939febfa
comparison
equal deleted inserted replaced
1378:dc0e13e7e1ae 1379:c0a74f199ecf
217 } 217 }
218 } 218 }
219 219
220 this->gl_config.dll_handle = handle; 220 this->gl_config.dll_handle = handle;
221 if ( path ) { 221 if ( path ) {
222 SDL_strncpy(this->gl_config.driver_path, path, 222 SDL_strlcpy(this->gl_config.driver_path, path,
223 sizeof(this->gl_config.driver_path)-1); 223 SDL_arraysize(this->gl_config.driver_path));
224 } else { 224 } else {
225 SDL_strcpy(this->gl_config.driver_path, ""); 225 *this->gl_config.driver_path = '\0';
226 } 226 }
227 227
228 #endif 228 #endif
229 this->gl_config.driver_loaded = 1; 229 this->gl_config.driver_loaded = 1;
230 230