mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor: replace '\0' with NUL
This commit is contained in:

committed by
Lewis Russell

parent
2f5b8a0092
commit
a18982cb83
@@ -580,7 +580,7 @@ static void uc_list(char *name, size_t name_len)
|
||||
IObuff[len++] = ' ';
|
||||
} while ((int64_t)len < 25 - over);
|
||||
|
||||
IObuff[len] = '\0';
|
||||
IObuff[len] = NUL;
|
||||
msg_outtrans(IObuff, 0);
|
||||
|
||||
if (cmd->uc_luaref != LUA_NOREF) {
|
||||
@@ -831,7 +831,7 @@ invalid_count:
|
||||
}
|
||||
} else {
|
||||
char ch = attr[len];
|
||||
attr[len] = '\0';
|
||||
attr[len] = NUL;
|
||||
semsg(_("E181: Invalid attribute: %s"), attr);
|
||||
attr[len] = ch;
|
||||
return FAIL;
|
||||
@@ -1364,7 +1364,7 @@ size_t uc_mods(char *buf, const cmdmod_T *cmod, bool quote)
|
||||
if (quote) {
|
||||
*buf++ = '"';
|
||||
}
|
||||
*buf = '\0';
|
||||
*buf = NUL;
|
||||
}
|
||||
|
||||
// the modifiers that are simple flags
|
||||
|
Reference in New Issue
Block a user