[xiph-cvs] cvs commit: ao/src audio_out.c

Stan Seibert volsung at xiph.org
Fri Aug 29 12:01:49 PDT 2003



volsung     03/08/29 15:01:49

  Modified:    src      audio_out.c
  Log:
  PATH_MAX is the more appropriate constant.  Closes bug 238.

Revision  Changes    Path
1.26      +3 -2      ao/src/audio_out.c

Index: audio_out.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/audio_out.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- audio_out.c	26 Aug 2003 20:14:58 -0000	1.25
+++ audio_out.c	29 Aug 2003 19:01:49 -0000	1.26
@@ -27,6 +27,7 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
+#include <limits.h>
 #include <dlfcn.h>
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -232,7 +233,7 @@
         struct dirent *plugin_dirent;
         char *ext;
         struct stat statbuf;
-	char fullpath[FILENAME_MAX];
+	char fullpath[PATH_MAX];
         DIR *plugindir;
         driver_list *plugin;
         driver_list *driver = end;
@@ -241,7 +242,7 @@
         plugindir = opendir(AO_PLUGIN_PATH);
         if (plugindir != NULL) {
                 while ((plugin_dirent = readdir(plugindir)) != NULL) {
-			snprintf(fullpath, FILENAME_MAX, "%s/%s", 
+			snprintf(fullpath, PATH_MAX, "%s/%s", 
                                  AO_PLUGIN_PATH, plugin_dirent->d_name);
                         if (!stat(fullpath, &statbuf) && 
                             S_ISREG(statbuf.st_mode) && 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list