update roots.cpp
use snprintf() to again sprintf()

Signed-off-by: sndnvaps <sndnvaps@gmail.com>