correct argument of open.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28756 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-12-07 12:20:27 +00:00
parent afea8a5b7c
commit b1a888a023

View file

@ -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)