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

committed by
Lewis Russell

parent
2f5b8a0092
commit
a18982cb83
@@ -724,7 +724,7 @@ static int qf_get_next_str_line(qfstate_T *state)
|
||||
state->linelen = len;
|
||||
}
|
||||
memcpy(state->linebuf, p_str, state->linelen);
|
||||
state->linebuf[state->linelen] = '\0';
|
||||
state->linebuf[state->linelen] = NUL;
|
||||
|
||||
// Increment using len in order to discard the rest of the line if it
|
||||
// exceeds LINE_MAXLEN.
|
||||
|
Reference in New Issue
Block a user