From 2179a03111bddaddabba3520f1fe806c4c72689a Mon Sep 17 00:00:00 2001 From: Douglas Schneider Date: Mon, 26 May 2014 17:09:02 -0600 Subject: Replace vim_strncpy calls: path.c --- src/nvim/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/path.c b/src/nvim/path.c index cbddde3434..a0859180c9 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -1534,7 +1534,7 @@ vim_FullName ( retval = path_get_absolute_path(fname, buf, len, force); if (url || retval == FAIL) { /* something failed; use the file name (truncate when too long) */ - vim_strncpy(buf, fname, len - 1); + STRLCPY(buf, fname, len); } return retval; } -- cgit