From d735de4f2709c542496696926a4a6b770b118649 Mon Sep 17 00:00:00 2001
From: Jack Moffitt <jack@xiph.org>
Date: Sat, 18 Nov 2000 06:36:58 +0000
Subject: [PATCH] using correct constant now

git-svn-id: http://svn.xiph.org/trunk/ao@1092 0101bb08-14d6-0310-b084-bc0e0c8e3800
---
 src/audio_out.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/audio_out.c b/src/audio_out.c
index 09f408e..509b327 100644
--- a/src/audio_out.c
+++ b/src/audio_out.c
@@ -102,7 +102,7 @@ void ao_initialize(void)
 	char *ext;
 	struct stat statbuf;
 	void *plughand;
-	char fullpath[NAME_MAX];
+	char fullpath[FILENAME_MAX];
 
 	if (driver_head == NULL) {
 		/* insert the null and wav drivers into the tree */
@@ -123,7 +123,7 @@ void ao_initialize(void)
 		plugindir = opendir(AO_PLUGIN_PATH);
 		if (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 (strcmp(ext, SHARED_LIB_EXT) == 0) {
 						plugin = _get_plugin(fullpath);
-- 
GitLab