summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/stdio/vscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/stdio/vscanf.c')
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/vscanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/vscanf.c b/testsuites/psxtests/psxhdrs/stdio/vscanf.c
index 579629480c..fe7350f4af 100644
--- a/testsuites/psxtests/psxhdrs/stdio/vscanf.c
+++ b/testsuites/psxtests/psxhdrs/stdio/vscanf.c
@@ -30,10 +30,10 @@ int test( void );
int test( void )
{
- char *fmt1 = " %d %99s ";
+ va_list ap;
int result;
- result = vscanf( fmt1, NULL );
+ result = vscanf( " %d %99s ", ap );
return result;
}