correct argument of open.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28756 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
afea8a5b7c
commit
b1a888a023
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue