comparison src/audio/alsa/SDL_alsa_audio.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
122 /* alsa_handle = SDL_LoadObject(alsa_library);*/ 122 /* alsa_handle = SDL_LoadObject(alsa_library);*/
123 alsa_handle = dlopen(alsa_library,RTLD_NOW); 123 alsa_handle = dlopen(alsa_library,RTLD_NOW);
124 if (alsa_handle) { 124 if (alsa_handle) {
125 alsa_loaded = 1; 125 alsa_loaded = 1;
126 retval = 0; 126 retval = 0;
127 for (i = 0; i < SDL_TABLESIZE(alsa_functions); i++) { 127 for (i = 0; i < SDL_arraysize(alsa_functions); i++) {
128 /* *alsa_functions[i].func = SDL_LoadFunction(alsa_handle,alsa_functions[i].name);*/ 128 /* *alsa_functions[i].func = SDL_LoadFunction(alsa_handle,alsa_functions[i].name);*/
129 #if HAVE_DLVSYM 129 #if HAVE_DLVSYM
130 *alsa_functions[i].func = dlvsym(alsa_handle,alsa_functions[i].name,"ALSA_0.9"); 130 *alsa_functions[i].func = dlvsym(alsa_handle,alsa_functions[i].name,"ALSA_0.9");
131 if (!*alsa_functions[i].func) 131 if (!*alsa_functions[i].func)
132 #endif 132 #endif