|
|
|
|
|
by xentronium
5362 days ago
|
|
strcmp (and many other string routines like strlen, strcpy) relies on strings being null terminated. Safe versions (strncmp, strnlen, strncpy) have a parameter for maximum string length. I am pretty sure that in this particular case it is not passed any user input, so it's kinda safe. |
|