aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authorJames Tirta Halim <tirtajames45@gmail.com>2024-06-03 11:00:20 +0700
committerLewis Russell <me@lewisr.dev>2024-06-04 09:42:19 +0100
commita18982cb839d7f05e32b1026bbd99b8aa34ad189 (patch)
treea2fcf7096210519d2f1397ab22b0200598350578 /src/nvim/ops.c
parent2f5b8a009280eba995aecf67d1e8d99b7c72c51c (diff)
downloadrneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.gz
rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.bz2
rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.zip
refactor: replace '\0' with NUL
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 74c6e83495..1448896146 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -4725,7 +4725,7 @@ bool do_addsub(int op_type, pos_T *pos, int length, linenr_T Prenum1)
buf2[i++] = ((n >> --bits) & 0x1) ? '1' : '0';
}
- buf2[i] = '\0';
+ buf2[i] = NUL;
} else if (pre == 0) {
vim_snprintf(buf2, ARRAY_SIZE(buf2), "%" PRIu64, (uint64_t)n);
} else if (pre == '0') {