aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/strings.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/strings.c')
-rw-r--r--src/nvim/strings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/strings.c b/src/nvim/strings.c
index 34b3c38103..4ef60f4ab8 100644
--- a/src/nvim/strings.c
+++ b/src/nvim/strings.c
@@ -1468,7 +1468,7 @@ char *reverse_text(char *s)
/// @return [allocated] Copy of the string.
char *strrep(const char *src, const char *what, const char *rep)
{
- char *pos = (char *)src;
+ const char *pos = src;
size_t whatlen = strlen(what);
// Count occurrences