Skip to content
Snippets Groups Projects
Commit d735de4f authored by Jack Moffitt's avatar Jack Moffitt
Browse files

using correct constant now

git-svn-id: http://svn.xiph.org/trunk/ao@1092 0101bb08-14d6-0310-b084-bc0e0c8e3800
parent df62642e
No related branches found
No related tags found
No related merge requests found
...@@ -102,7 +102,7 @@ void ao_initialize(void) ...@@ -102,7 +102,7 @@ void ao_initialize(void)
char *ext; char *ext;
struct stat statbuf; struct stat statbuf;
void *plughand; void *plughand;
char fullpath[NAME_MAX]; char fullpath[FILENAME_MAX];
if (driver_head == NULL) { if (driver_head == NULL) {
/* insert the null and wav drivers into the tree */ /* insert the null and wav drivers into the tree */
...@@ -123,7 +123,7 @@ void ao_initialize(void) ...@@ -123,7 +123,7 @@ void ao_initialize(void)
plugindir = opendir(AO_PLUGIN_PATH); plugindir = opendir(AO_PLUGIN_PATH);
if (plugindir != NULL) { if (plugindir != NULL) {
while ((plugin_dirent = readdir(plugindir)) != NULL) { while ((plugin_dirent = readdir(plugindir)) != NULL) {
snprintf(fullpath, NAME_MAX, "%s/%s", AO_PLUGIN_PATH, plugin_dirent->d_name); snprintf(fullpath, FILENAME_MAX, "%s/%s", AO_PLUGIN_PATH, plugin_dirent->d_name);
if (!stat(fullpath, &statbuf) && S_ISREG(statbuf.st_mode) && (ext = strrchr(plugin_dirent->d_name, '.')) != NULL) { if (!stat(fullpath, &statbuf) && S_ISREG(statbuf.st_mode) && (ext = strrchr(plugin_dirent->d_name, '.')) != NULL) {
if (strcmp(ext, SHARED_LIB_EXT) == 0) { if (strcmp(ext, SHARED_LIB_EXT) == 0) {
plugin = _get_plugin(fullpath); plugin = _get_plugin(fullpath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment