projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixing #47 (*snprint() crash).
[fw/pdclib]
/
functions
/
stdio
/
snprintf.c
diff --git
a/functions/stdio/snprintf.c
b/functions/stdio/snprintf.c
index 6dd39671fdf33647fb4b5d97f9022c3dad547372..db6778cc780fa6c635b1893763f846a03252923d 100644
(file)
--- a/
functions/stdio/snprintf.c
+++ b/
functions/stdio/snprintf.c
@@
-35,6
+35,8
@@
int main( void )
{
char target[100];
#include "printf_testcases.h"
+ TESTCASE( snprintf( NULL, 0, "foo" ) == 3 );
+ TESTCASE( snprintf( NULL, 0, "%d", 100 ) == 3 );
return TEST_RESULTS;
}