Buffer overrun exploits are bad, but having your program abort when it sees a long string isn't much better. There's a magic word you need to know to use the security-enhanced Microsoft C string ...
Microsoft’s Visual Studio IDE has added support for the C11 and C17 C language standards, thus expanding the IDE’s previously limited support for C. C11 and C17 become supported language versions ...