summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxhdrs/stdio/vfscanf.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxhdrs/stdio/vfscanf.c')
-rw-r--r--testsuites/psxtests/psxhdrs/stdio/vfscanf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testsuites/psxtests/psxhdrs/stdio/vfscanf.c b/testsuites/psxtests/psxhdrs/stdio/vfscanf.c
index e7fedd682d..5c4e03315f 100644
--- a/testsuites/psxtests/psxhdrs/stdio/vfscanf.c
+++ b/testsuites/psxtests/psxhdrs/stdio/vfscanf.c
@@ -31,11 +31,11 @@ int test( void );
int test( void )
{
FILE *stream;
- char *fmt1 = " %d %99s ";
+ va_list ap;
int result;
stream = fopen( "myfile.dat", "w" );
- result = vfscanf( stream, fmt1, NULL );
+ result = vfscanf( stream, " %d %99s ", ap );
return result;
}