diff options
| author | dundargoc <gocdundar@gmail.com> | 2022-11-26 18:57:46 +0100 | 
|---|---|---|
| committer | dundargoc <gocdundar@gmail.com> | 2022-11-28 14:53:35 +0100 | 
| commit | 3b96ccf7d35be90e49029dec76344d3d92ad91dc (patch) | |
| tree | f4768eb7d7be52402ccd55e3e4e04aecceab3e42 /src/nvim/regexp_nfa.c | |
| parent | b2bb3973d9c7f25acfead2718d74fcf5b1e4551e (diff) | |
| download | rneovim-3b96ccf7d35be90e49029dec76344d3d92ad91dc.tar.gz rneovim-3b96ccf7d35be90e49029dec76344d3d92ad91dc.tar.bz2 rneovim-3b96ccf7d35be90e49029dec76344d3d92ad91dc.zip  | |
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
Diffstat (limited to 'src/nvim/regexp_nfa.c')
| -rw-r--r-- | src/nvim/regexp_nfa.c | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/regexp_nfa.c b/src/nvim/regexp_nfa.c index 7361b31456..25a99c58ba 100644 --- a/src/nvim/regexp_nfa.c +++ b/src/nvim/regexp_nfa.c @@ -3332,10 +3332,10 @@ static void nfa_print_state2(FILE *debugf, nfa_state_T *state, garray_T *indent)      int last = indent->ga_len - 3;      char_u save[2]; -    STRNCPY(save, &p[last], 2);  // NOLINT(runtime/printf) +    strncpy(save, &p[last], 2);  // NOLINT(runtime/printf)      memcpy(&p[last], "+-", 2);      fprintf(debugf, " %s", p); -    STRNCPY(&p[last], save, 2);  // NOLINT(runtime/printf) +    strncpy(&p[last], save, 2);  // NOLINT(runtime/printf)    } else {      fprintf(debugf, " %s", p);    }  | 
