comparison src/video/photon/SDL_ph_gl.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
121 } 121 }
122 122
123 this->gl_config.dll_handle = handle; 123 this->gl_config.dll_handle = handle;
124 this->gl_config.driver_loaded = 1; 124 this->gl_config.driver_loaded = 1;
125 125
126 SDL_strncpy(this->gl_config.driver_path, path, sizeof(this->gl_config.driver_path)-1); 126 SDL_strlcpy(this->gl_config.driver_path, path, SDL_arraysize(this->gl_config.driver_path));
127 127
128 return 0; 128 return 0;
129 } 129 }
130 #endif /* 6.3.0 */ 130 #endif /* 6.3.0 */
131 131