mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
refactor: use S_LEN(s) instead of s, n (#29219)
This commit is contained in:
@@ -1896,7 +1896,7 @@ theend:
|
||||
bool is_dev_fd_file(char *fname)
|
||||
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_WARN_UNUSED_RESULT
|
||||
{
|
||||
return strncmp(fname, "/dev/fd/", 8) == 0
|
||||
return strncmp(fname, S_LEN("/dev/fd/")) == 0
|
||||
&& ascii_isdigit((uint8_t)fname[8])
|
||||
&& *skipdigits(fname + 9) == NUL
|
||||
&& (fname[9] != NUL
|
||||
|
Reference in New Issue
Block a user