Fix issue with sprintf_s()