diff options
author | Florian Walch <florian@fwalch.com> | 2014-11-26 00:19:58 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-12-24 00:32:26 -0500 |
commit | 0f258e44530aa4c7b8266a548806159584fc3197 (patch) | |
tree | 7cd1cfd585f0c72deaea5fd12a4de0f2da23fc61 | |
parent | 73a970ccd982cba90dbe9f536a0ba3bca6cbe5b0 (diff) | |
download | rneovim-0f258e44530aa4c7b8266a548806159584fc3197.tar.gz rneovim-0f258e44530aa4c7b8266a548806159584fc3197.tar.bz2 rneovim-0f258e44530aa4c7b8266a548806159584fc3197.zip |
Linting: Fix strcpy warning.
-rw-r--r-- | src/nvim/os/fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c index bdaf9ecdda..242f8fb461 100644 --- a/src/nvim/os/fs.c +++ b/src/nvim/os/fs.c @@ -4,6 +4,7 @@ #include <assert.h> #include "nvim/os/os.h" +#include "nvim/os/os_defs.h" #include "nvim/ascii.h" #include "nvim/memory.h" #include "nvim/message.h" @@ -331,7 +332,7 @@ int os_mkdtemp(const char *template, char *path) uv_fs_t request; int result = uv_fs_mkdtemp(uv_default_loop(), &request, template, NULL); if (result == kLibuvSuccess) { - strcpy(path, request.path); + STRNCPY(path, request.path, TEMP_FILE_PATH_MAXLEN); } uv_fs_req_cleanup(&request); return result; |