summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mplayer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 6d2fd2084c..e97f0fbada 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -524,7 +524,7 @@ if ((conffile = get_path("")) == NULL) {
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;