fix compiling error cause by sprintf_s.