From 7e26b6cc29c1f050f55152f0759cd2db276d107e Mon Sep 17 00:00:00 2001 From: arpi Date: Sun, 29 Dec 2002 14:36:56 +0000 Subject: PATH_MAX fixed bugrep by Diego git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8635 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mplayer.c') 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; -- cgit v1.2.3