Mercurial > vim
comparison src/proto/misc2.pro @ 2768:c5e47b752f07 v7.3.160
updated for version 7.3.160
Problem: Unsafe string copying.
Solution: Use vim_strncpy() instead of strcpy(). Use vim_strcat() instead
of strcat().
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 11 Apr 2011 16:56:35 +0200 |
parents | 7ec9ada2cd81 |
children | 0bef86c5c985 |
comparison
equal
deleted
inserted
replaced
2767:9d6d058f0ebb | 2768:c5e47b752f07 |
---|---|
38 char_u *strup_save __ARGS((char_u *orig)); | 38 char_u *strup_save __ARGS((char_u *orig)); |
39 void copy_spaces __ARGS((char_u *ptr, size_t count)); | 39 void copy_spaces __ARGS((char_u *ptr, size_t count)); |
40 void copy_chars __ARGS((char_u *ptr, size_t count, int c)); | 40 void copy_chars __ARGS((char_u *ptr, size_t count, int c)); |
41 void del_trailing_spaces __ARGS((char_u *ptr)); | 41 void del_trailing_spaces __ARGS((char_u *ptr)); |
42 void vim_strncpy __ARGS((char_u *to, char_u *from, size_t len)); | 42 void vim_strncpy __ARGS((char_u *to, char_u *from, size_t len)); |
43 void vim_strcat __ARGS((char_u *to, char_u *from, size_t tosize)); | |
43 int copy_option_part __ARGS((char_u **option, char_u *buf, int maxlen, char *sep_chars)); | 44 int copy_option_part __ARGS((char_u **option, char_u *buf, int maxlen, char *sep_chars)); |
44 void vim_free __ARGS((void *x)); | 45 void vim_free __ARGS((void *x)); |
45 int vim_stricmp __ARGS((char *s1, char *s2)); | 46 int vim_stricmp __ARGS((char *s1, char *s2)); |
46 int vim_strnicmp __ARGS((char *s1, char *s2, size_t len)); | 47 int vim_strnicmp __ARGS((char *s1, char *s2, size_t len)); |
47 char_u *vim_strchr __ARGS((char_u *string, int c)); | 48 char_u *vim_strchr __ARGS((char_u *string, int c)); |