diff options
author | Alexander Levin <al.le@rockbox.org> | 2010-12-25 22:22:50 +0000 |
---|---|---|
committer | Alexander Levin <al.le@rockbox.org> | 2010-12-25 22:22:50 +0000 |
commit | 1d460b603fded79cb879704a4d30a50318263211 (patch) | |
tree | d40f32e25ec3ea1d97d6f12e89c58858b02d2167 /apps/plugins/disktidy.c | |
parent | 992f897440702639115128a08ceaf893df1316ac (diff) | |
download | rockbox-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.c | 4 |
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) | |||
59 | } | 59 | } |
60 | else | 60 | else |
61 | entry->directory = false; | 61 | entry->directory = false; |
62 | a = rb->strchr(name, '*'); | 62 | a = rb->strchr(entry->filestring, '*'); |
63 | if (a) | 63 | if (a) |
64 | { | 64 | { |
65 | entry->pre = a - name; | 65 | entry->pre = a - entry->filestring; |
66 | entry->post = rb->strlen(a+1); | 66 | entry->post = rb->strlen(a+1); |
67 | } | 67 | } |
68 | else | 68 | else |