You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Buffer write operations that do not control the length of data
written may overflow.
Also, the scanf format string "%[^\n]s" is ill-formed. It contains
two independent format specifiers: "%[^\n]" followed by a lone "s".
This will direct scanf to read everything until \n is encountered
(leaving \n unread), and then require that the next input character
is s. This just doesn't make any sense. No input will match such
self-contradictory format.
Reference: https://stackoverflow.com/questions/8177752/scanf-ns-a-vs-getsa
0 commit comments