comparison src/proto/strings.pro @ 31624:d605a50e7623 v9.0.1144

patch 9.0.1144: reading beyond text Commit: https://github.com/vim/vim/commit/c32949b0779106ed5710ae3bffc5053e49083ab4 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Jan 4 15:56:51 2023 +0000 patch 9.0.1144: reading beyond text Problem: Reading beyond text. Solution: Add strlen_maxlen() and use it.
author Bram Moolenaar <Bram@vim.org>
date Wed, 04 Jan 2023 17:00:05 +0100
parents 6c2bbd7d9217
children 8d6f53a07ffd
comparison
equal deleted inserted replaced
31623:f061953e1618 31624:d605a50e7623
10 void vim_strup(char_u *p); 10 void vim_strup(char_u *p);
11 char_u *strlow_save(char_u *orig); 11 char_u *strlow_save(char_u *orig);
12 void del_trailing_spaces(char_u *ptr); 12 void del_trailing_spaces(char_u *ptr);
13 void vim_strncpy(char_u *to, char_u *from, size_t len); 13 void vim_strncpy(char_u *to, char_u *from, size_t len);
14 void vim_strcat(char_u *to, char_u *from, size_t tosize); 14 void vim_strcat(char_u *to, char_u *from, size_t tosize);
15 size_t vim_strlen_maxlen(char *s, size_t maxlen);
15 int vim_stricmp(char *s1, char *s2); 16 int vim_stricmp(char *s1, char *s2);
16 int vim_strnicmp(char *s1, char *s2, size_t len); 17 int vim_strnicmp(char *s1, char *s2, size_t len);
17 char_u *vim_strchr(char_u *string, int c); 18 char_u *vim_strchr(char_u *string, int c);
18 char_u *vim_strbyte(char_u *string, int c); 19 char_u *vim_strbyte(char_u *string, int c);
19 char_u *vim_strrchr(char_u *string, int c); 20 char_u *vim_strrchr(char_u *string, int c);