I have a C program that uses sprintf_s. It works fine in Windows, but when I compile my code in Linux it gives this error:
sprintf_s
sprintf_s was not dec
snprintf is insecure, only sprintf_s is secure. snprintf does not guarantee to add a final \0, leading to possible subsequent overflows. look at https://github.com/rurban/safeclib for a proper implementation.