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

Jack Moffitt jack at xiph.org
Fri Nov 17 22:36:59 PST 2000



jack        00/11/17 22:36:58

  Modified:    src      audio_out.c
  Log:
  using correct constant now

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

Index: audio_out.c
===================================================================
RCS file: /usr/local/cvsroot/ao/src/audio_out.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- audio_out.c	2000/11/04 05:29:29	1.6
+++ audio_out.c	2000/11/18 06:36:58	1.7
@@ -102,7 +102,7 @@
         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 @@
                 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);

--- >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