summaryrefslogtreecommitdiffstats
path: root/apps/plugins/keyremap.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/keyremap.c')
-rw-r--r--apps/plugins/keyremap.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/plugins/keyremap.c b/apps/plugins/keyremap.c
index 3923cc40d0..ccf446d279 100644
--- a/apps/plugins/keyremap.c
+++ b/apps/plugins/keyremap.c
@@ -521,9 +521,11 @@ static int keyremap_export_current(char *filenamebuf, size_t bufsz)
int entry_count = ctx_data.ctx_count + ctx_data.act_count + 1;;/* (ctx_count + ctx_count + act_count + 1) */
- if (entry_count <= 3)
+ if (entry_count < 3)
+ {
+ logf("%s: Not enough entries", __func__);
return 0;
-
+ }
int fd = rb->open(filenamebuf, O_WRONLY | O_CREAT | O_TRUNC, 0666);
if (fd < 0)
@@ -620,6 +622,7 @@ static void keyremap_import_user_keys(void)
.icon = Icon_Plugin,
.buf = buf,
.bufsize = sizeof(buf),
+ .root = "/",
};
if (rb->rockbox_browse(&browse) == GO_TO_PREVIOUS)