replace snprintf.c by snprintf.c
Directly invoke vsnprintf since it is included in c++11.