mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 02:08:17 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -391,13 +391,13 @@ String cbuf_to_string(const char *buf, size_t size)
|
||||
String cstrn_to_string(const char *str, size_t maxsize)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
return cbuf_to_string(str, STRNLEN(str, maxsize));
|
||||
return cbuf_to_string(str, strnlen(str, maxsize));
|
||||
}
|
||||
|
||||
String cstrn_as_string(char *str, size_t maxsize)
|
||||
FUNC_ATTR_NONNULL_ALL
|
||||
{
|
||||
return cbuf_as_string(str, STRNLEN(str, maxsize));
|
||||
return cbuf_as_string(str, strnlen(str, maxsize));
|
||||
}
|
||||
|
||||
/// Creates a String using the given C string. Unlike
|
||||
|
Reference in New Issue
Block a user