Commit 6085fb19 authored by Monty's avatar Monty

Fixed compiler error/warning in backup_copy.cc

parent 286d6f23
...@@ -2308,7 +2308,7 @@ ds_ctxt_t::make_hardlink(const char *from_path, const char *to_path) ...@@ -2308,7 +2308,7 @@ ds_ctxt_t::make_hardlink(const char *from_path, const char *to_path)
} }
else else
{ {
strncpy(to_path_full, to_path, sizeof(to_path_full)); strncpy(to_path_full, to_path, sizeof(to_path_full)-1);
} }
#ifdef _WIN32 #ifdef _WIN32
return CreateHardLink(to_path_full, from_path, NULL); return CreateHardLink(to_path_full, from_path, NULL);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment