benchmarks: fix warning about insane use of printf()

This commit is contained in:
Hugues Delorme 2016-01-13 14:57:58 +01:00
parent 073f897097
commit 2a6a2f3a8e

View File

@ -108,7 +108,7 @@ static void print_string_n(const char* str, size_t n)
{
size_t i; /* for-loop index*/
for (i = 0; i < n; ++i)
printf(str);
fputs(str, stdout);
}
/*! Safe wrapper around strlen() for NULL strings */