C++ Language/Std/Strings/AvoidingBufferOverrun

Some of the original C-Runtime functions were succeptible to a buffer-overrun-hack. For example,  would cause a runtime-error.

A safer alternative is available in Win32;  simply returns   without trying to overrun the buffer.

Additional information about avoiding buffer-overrun