Changed sprintf to sprintf_s
Revert "Changed sprintf to sprintf_s"

This reverts commit ce4395abc15985ce909c15e7120c9b1df33dcb41.