sprintf_s writing data after the terminator
Within my C++ code, within Visual Studio, I’m generating a simple string "%02d"
with an int
value of 1
. My buffer is exactly 64 characters in capacity, and I’m specifying 64 as my buffer’s length to sprintf_s
: