comparison src/audio/arts/SDL_artsaudio.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
88 88
89 arts_handle = SDL_LoadObject(arts_library); 89 arts_handle = SDL_LoadObject(arts_library);
90 if ( arts_handle ) { 90 if ( arts_handle ) {
91 arts_loaded = 1; 91 arts_loaded = 1;
92 retval = 0; 92 retval = 0;
93 for ( i=0; i<SDL_TABLESIZE(arts_functions); ++i ) { 93 for ( i=0; i<SDL_arraysize(arts_functions); ++i ) {
94 *arts_functions[i].func = SDL_LoadFunction(arts_handle, arts_functions[i].name); 94 *arts_functions[i].func = SDL_LoadFunction(arts_handle, arts_functions[i].name);
95 if ( !*arts_functions[i].func ) { 95 if ( !*arts_functions[i].func ) {
96 retval = -1; 96 retval = -1;
97 UnloadARTSLibrary(); 97 UnloadARTSLibrary();
98 break; 98 break;