mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Linting: Fix strcpy warning.
This commit is contained in:
parent
73a970ccd9
commit
0f258e4453
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user