summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-12-07 12:20:27 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-12-07 12:20:27 +0000
commitb1a888a023ebd3db472c060099b24612682c5678 (patch)
treeb67ce45ce0a794c666f338c0e4f05d67c0219579
parentafea8a5b7cfe77a8926bb12ca837e4bb58b806bc (diff)
downloadrockbox-b1a888a023ebd3db472c060099b24612682c5678.tar.gz
rockbox-b1a888a023ebd3db472c060099b24612682c5678.tar.bz2
rockbox-b1a888a023ebd3db472c060099b24612682c5678.zip
correct argument of open.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28756 a1c6a512-1295-4272-9138-f99709370657
-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)