aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.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/mbyte.c
parent2f5b8a009280eba995aecf67d1e8d99b7c72c51c (diff)
downloadrneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.gz
rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.tar.bz2
rneovim-a18982cb839d7f05e32b1026bbd99b8aa34ad189.zip
refactor: replace '\0' with NUL
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r--src/nvim/mbyte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index 23fdd5eb16..07c0c846ed 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -1500,7 +1500,7 @@ int utf8_to_utf16(const char *utf8, int utf8len, wchar_t **utf16)
return uv_translate_sys_error(GetLastError());
}
- (*utf16)[bufsize] = L'\0';
+ (*utf16)[bufsize] = LNUL;
return 0;
}
@@ -1546,7 +1546,7 @@ int utf16_to_utf8(const wchar_t *utf16, int utf16len, char **utf8)
return uv_translate_sys_error(GetLastError());
}
- (*utf8)[bufsize] = '\0';
+ (*utf8)[bufsize] = NUL;
return 0;
}