summaryrefslogtreecommitdiffstats
path: root/apps/plugins/disktidy.c
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2010-12-25 22:22:50 +0000
committerAlexander Levin <al.le@rockbox.org>2010-12-25 22:22:50 +0000
commit1d460b603fded79cb879704a4d30a50318263211 (patch)
treed40f32e25ec3ea1d97d6f12e89c58858b02d2167 /apps/plugins/disktidy.c
parent992f897440702639115128a08ceaf893df1316ac (diff)
downloadrockbox-1d460b603fded79cb879704a4d30a50318263211.tar.gz
rockbox-1d460b603fded79cb879704a4d30a50318263211.zip
disktidy: Fix deleting of directories specified by a pattern (FS#11827)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28900 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/disktidy.c')
-rw-r--r--apps/plugins/disktidy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/disktidy.c b/apps/plugins/disktidy.c
index 5ed3f76e22..995fd6d28d 100644
--- a/apps/plugins/disktidy.c
+++ b/apps/plugins/disktidy.c
@@ -59,10 +59,10 @@ void add_item(const char* name, int index)
}
else
entry->directory = false;
- a = rb->strchr(name, '*');
+ a = rb->strchr(entry->filestring, '*');
if (a)
{
- entry->pre = a - name;
+ entry->pre = a - entry->filestring;
entry->post = rb->strlen(a+1);
}
else