summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2006-12-14 12:41:37 +0000
committerphintuka <phintuka>2006-12-14 12:41:37 +0000
commit8179a4747bf716fbeebc30128b89719b58b9614c (patch)
tree11b4c1a554443fc290bb3ebc399d9b21bb58f9a1
parente9b3ef81b4fa980a09f1f098246d6c29702f3706 (diff)
downloadxineliboutput-8179a4747bf716fbeebc30128b89719b58b9614c.tar.gz
xineliboutput-8179a4747bf716fbeebc30128b89719b58b9614c.tar.bz2
Fixed accumulating /'s in front of file name each time when root directory is browsed
-rw-r--r--menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index fda9e97d..48715460 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c,v 1.22 2006-11-05 17:06:47 phintuka Exp $
+ * $Id: menu.c,v 1.23 2006-12-14 12:41:37 phintuka Exp $
*
*/
@@ -257,6 +257,8 @@ eOSState cMenuBrowseFiles::Open(bool ForceOpen, bool Parent)
const char *d = GetCurrent()->Name();
char *buffer = NULL;
asprintf(&buffer, "%s/%s", m_CurrentDir, d);
+ while(buffer[0] == '/' && buffer[1] == '/')
+ strcpy(buffer, buffer+1);
free(m_CurrentDir);
m_CurrentDir = buffer;
Set();