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