comparison src/audio/esd/SDL_esdaudio.c @ 1379:c0a74f199ecf

Use only safe string functions
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Feb 2006 23:46:34 +0000
parents e440d5c488c1
children d910939febfa
comparison
equal deleted inserted replaced
1378:dc0e13e7e1ae 1379:c0a74f199ecf
83 83
84 esd_handle = SDL_LoadObject(esd_library); 84 esd_handle = SDL_LoadObject(esd_library);
85 if ( esd_handle ) { 85 if ( esd_handle ) {
86 esd_loaded = 1; 86 esd_loaded = 1;
87 retval = 0; 87 retval = 0;
88 for ( i=0; i<SDL_TABLESIZE(esd_functions); ++i ) { 88 for ( i=0; i<SDL_arraysize(esd_functions); ++i ) {
89 *esd_functions[i].func = SDL_LoadFunction(esd_handle, esd_functions[i].name); 89 *esd_functions[i].func = SDL_LoadFunction(esd_handle, esd_functions[i].name);
90 if ( !*esd_functions[i].func ) { 90 if ( !*esd_functions[i].func ) {
91 retval = -1; 91 retval = -1;
92 UnloadESDLibrary(); 92 UnloadESDLibrary();
93 break; 93 break;