修正编译错误

This commit is contained in:
anod 2022-10-22 20:47:06 +08:00
parent 5b4959439c
commit ed3686ec0d

View File

@ -273,7 +273,7 @@ atp_error_t oaf_config_page()
}
// cache the savetype
static u16 from_savetype_cache( const char *file )
static u16 from_savetype_cache( char file[512] )
{
FILINFO fi;
int len = strlen( file );
@ -296,7 +296,7 @@ static u16 from_savetype_cache( const char *file )
file[len-3] = 'g';
return retval;
}
static void savetype_cache_store( const char *file, u16 savetype )
static void savetype_cache_store( char file[512], u16 savetype )
{
int len = strlen( file );
file[len-1] = 'c';