Use snprintf() and `static_cast<unsigned int>(...)` here.  I know the buffer is big enough but sprintf() sets off alarm bells in most C programmers.  Let's think of the C programmers.