diff options
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r-- | gold/plugin.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc index 729ddca..fd37957 100644 --- a/gold/plugin.cc +++ b/gold/plugin.cc @@ -525,7 +525,7 @@ Plugin_recorder::init() size_t len = strlen(dir_template) + 1; char* tempdir = new char[len]; - strncpy(tempdir, dir_template, len); + memcpy(tempdir, dir_template, len); // Create the log file. std::string logname(tempdir); |