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