remove calling sprintf(); ref #1210