]> pd.if.org Git - pdclib/blobdiff - functions/stdio/vsnprintf.c
Better error reporting on printf's.
[pdclib] / functions / stdio / vsnprintf.c
index 0cccf7a0842d5814953d10c5b53d825104029a2b..9e54dca1bb392076e07c0566fa6449403b24b90b 100644 (file)
@@ -48,26 +48,26 @@ int vsnprintf( char * _PDCLIB_restrict s, size_t n, const char * _PDCLIB_restric
 #endif
 
 #ifdef TEST
+#define _PDCLIB_FILEID "stdio/vsnprintf.c"
 #include <_PDCLIB_test.h>
 
 #include <limits.h>
 #include <stdint.h>
 #include <string.h>
 
-
-static int testprintf( char * s, size_t n, const char * format, ... )
+static int testprintf( char * s, const char * format, ... )
 {
     int i;
     va_list arg;
     va_start( arg, format );
-    i = vsnprintf( s, n, format, arg );
+    i = vsnprintf( s, 100, format, arg );
     va_end( arg );
     return i;
 }
 
 int main( void )
 {
-    char buffer[100];
+    char target[100];
 #include "printf_testcases.incl"
     return TEST_RESULTS;
 }