Mercurial > sdl-ios-xcode
comparison src/video/wincommon/SDL_wingl.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 |
---|---|
549 FreeLibrary(handle); | 549 FreeLibrary(handle); |
550 return -1; | 550 return -1; |
551 } | 551 } |
552 | 552 |
553 this->gl_config.dll_handle = handle; | 553 this->gl_config.dll_handle = handle; |
554 SDL_strcpy(this->gl_config.driver_path, path); | 554 SDL_strlcpy(this->gl_config.driver_path, path, SDL_arraysize(this->gl_config.driver_path)); |
555 this->gl_config.driver_loaded = 1; | 555 this->gl_config.driver_loaded = 1; |
556 return 0; | 556 return 0; |
557 } | 557 } |
558 | 558 |
559 void *WIN_GL_GetProcAddress(_THIS, const char* proc) | 559 void *WIN_GL_GetProcAddress(_THIS, const char* proc) |