changeset 8634:a8c4246b6869

PATH_MAX fixed bugrep by Diego
author arpi
date Sun, 29 Dec 2002 14:36:56 +0000
parents b9927004eacc
children 81dbd28ef7c0
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sun Dec 29 14:35:18 2002 +0000
+++ b/mplayer.c	Sun Dec 29 14:36:56 2002 +0000
@@ -524,7 +524,7 @@
 void load_per_file_config (m_config_t* conf, const char *const file)
 {
     char *confpath;
-    char cfg[PATH_MAX];
+    char cfg[strlen(file)+10];
     struct stat st;
     char *name;