diff options
-rw-r--r-- | src/nvim/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |