aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/memory.c b/src/nvim/memory.c
index c221b13f8b..f38dfd56ac 100644
--- a/src/nvim/memory.c
+++ b/src/nvim/memory.c
@@ -241,7 +241,7 @@ void memchrsub(void *data, char c, char x, size_t len)
/// @param str Pointer to the string to search.
/// @param c The byte to search for.
/// @returns the number of occurrences of `c` in `str`.
-size_t strcnt(const char *str, char c, size_t len)
+size_t strcnt(const char *str, char c)
FUNC_ATTR_NONNULL_ALL FUNC_ATTR_PURE
{
assert(c != 0);