summaryrefslogtreecommitdiffstats
path: root/src/proto/strings.pro
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-01-04 15:56:51 +0000
committerBram Moolenaar <Bram@vim.org>2023-01-04 15:56:51 +0000
commitc32949b0779106ed5710ae3bffc5053e49083ab4 (patch)
tree14e2027724e250793fe942805c894b278d31321f /src/proto/strings.pro
parent7b17eb4b063a234376c1ec909ee293e42cff290c (diff)
patch 9.0.1144: reading beyond textv9.0.1144
Problem: Reading beyond text. Solution: Add strlen_maxlen() and use it.
Diffstat (limited to 'src/proto/strings.pro')
-rw-r--r--src/proto/strings.pro1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/strings.pro b/src/proto/strings.pro
index 50bbf29fe8..6022088315 100644
--- a/src/proto/strings.pro
+++ b/src/proto/strings.pro
@@ -12,6 +12,7 @@ char_u *strlow_save(char_u *orig);
void del_trailing_spaces(char_u *ptr);
void vim_strncpy(char_u *to, char_u *from, size_t len);
void vim_strcat(char_u *to, char_u *from, size_t tosize);
+size_t vim_strlen_maxlen(char *s, size_t maxlen);
int vim_stricmp(char *s1, char *s2);
int vim_strnicmp(char *s1, char *s2, size_t len);
char_u *vim_strchr(char_u *string, int c);