diff options
author | phintuka <phintuka> | 2006-12-14 12:41:37 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2006-12-14 12:41:37 +0000 |
commit | 8179a4747bf716fbeebc30128b89719b58b9614c (patch) | |
tree | 11b4c1a554443fc290bb3ebc399d9b21bb58f9a1 | |
parent | e9b3ef81b4fa980a09f1f098246d6c29702f3706 (diff) | |
download | xineliboutput-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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(); |