summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firmware/common/rbpaths.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/common/rbpaths.c b/firmware/common/rbpaths.c
index 50d6ccf6ec..c82e0f2dce 100644
--- a/firmware/common/rbpaths.c
+++ b/firmware/common/rbpaths.c
@@ -143,11 +143,10 @@ int app_open(const char *name, int o, ...)
name = _get_user_file_path(name, flags, realpath, sizeof(realpath));
}
va_start(ap, o);
- fd = open(name, o, ap);
+ fd = open(name, o, va_arg(ap, unsigned int));
va_end(ap);
return fd;
-
}
int app_creat(const char* name, mode_t mode)