summaryrefslogtreecommitdiffstats
path: root/subreader.c
diff options
context:
space:
mode:
authorhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-25 20:12:36 +0000
committerhenry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-25 20:12:36 +0000
commit69063f84ad39558289978d46b6d7da4a452d207f (patch)
tree28ef8b5779e62eee1e1e021b354e713915aa880c /subreader.c
parent9fc9f88cfbde165768ed9206bd384b2caf7edb31 (diff)
downloadmpv-69063f84ad39558289978d46b6d7da4a452d207f.tar.bz2
mpv-69063f84ad39558289978d46b6d7da4a452d207f.tar.xz
10L
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10337 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subreader.c')
-rw-r--r--subreader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subreader.c b/subreader.c
index b9c7ef0bb0..a65361d59d 100644
--- a/subreader.c
+++ b/subreader.c
@@ -1699,7 +1699,7 @@ char** sub_filenames(char* path, char *fname)
}
if (prio) {
- sprintf(tmpresult, "%s%s", f_dir, de->d_name);
+ sprintf(tmpresult, "%s%s", j == 0 ? f_dir : path, de->d_name);
// fprintf(stderr, "%s priority %d\n", tmpresult, prio);
if ((f = fopen(tmpresult, "rt"))) {
fclose(f);