aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2014-11-26 00:19:58 +0100
committerJustin M. Keyes <justinkz@gmail.com>2014-12-24 00:32:26 -0500
commit0f258e44530aa4c7b8266a548806159584fc3197 (patch)
tree7cd1cfd585f0c72deaea5fd12a4de0f2da23fc61 /src
parent73a970ccd982cba90dbe9f536a0ba3bca6cbe5b0 (diff)
downloadrneovim-0f258e44530aa4c7b8266a548806159584fc3197.tar.gz
rneovim-0f258e44530aa4c7b8266a548806159584fc3197.tar.bz2
rneovim-0f258e44530aa4c7b8266a548806159584fc3197.zip
Linting: Fix strcpy warning.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/fs.c3
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;