Changed sprintf_s argument to quell compiler warning