diff options
author | Douglas Schneider <ds3@ualberta.ca> | 2014-05-26 20:18:33 -0600 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-06-13 18:08:21 -0400 |
commit | 4e81698988cf17304c78e2581f03bcf7f9daf4bf (patch) | |
tree | 092c02bce38f53cbce1b5f3b34720c84e10a3208 /src | |
parent | e554ea2036c37551698696d8b0e92e3f83404b15 (diff) | |
download | rneovim-4e81698988cf17304c78e2581f03bcf7f9daf4bf.tar.gz rneovim-4e81698988cf17304c78e2581f03bcf7f9daf4bf.tar.bz2 rneovim-4e81698988cf17304c78e2581f03bcf7f9daf4bf.zip |
Replace vim_strncpy calls: if_cscope.c
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/if_cscope.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index 0b3e06070c..ffc00f060a 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -295,7 +295,7 @@ int cs_fgets(char_u *buf, int size) if ((p = cs_manage_matches(NULL, NULL, -1, Get)) == NULL) return TRUE; - vim_strncpy(buf, (char_u *)p, size - 1); + STRLCPY(buf, p, size); return FALSE; } /* cs_fgets */ @@ -2043,9 +2043,9 @@ static char *cs_resolve_file(int i, char *name) /* If 'cscoperelative' is set and ppath is not set, use cscope.out * path in path resolution. */ csdir = xmalloc(MAXPATHL); - vim_strncpy(csdir, (char_u *)csinfo[i].fname, + STRLCPY(csdir, csinfo[i].fname, path_tail((char_u *)csinfo[i].fname) - - (char_u *)csinfo[i].fname); + - (char_u *)csinfo[i].fname + 1); len += STRLEN(csdir); } |