mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
eval: Do not supply S_LEN to strncmp
It may be a macro as well.
This commit is contained in:
@@ -7967,7 +7967,7 @@ static void f_execute(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
if (s == NULL) {
|
||||
return;
|
||||
}
|
||||
if (strncmp(s, S_LEN("silent")) == 0) {
|
||||
if (strncmp(s, "silent", 6) == 0) {
|
||||
msg_silent++;
|
||||
}
|
||||
if (strcmp(s, "silent!") == 0) {
|
||||
|
Reference in New Issue
Block a user