aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
Diffstat (limited to 'src/util')
-rw-r--r--src/util/StringUtil.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/StringUtil.cxx b/src/util/StringUtil.cxx
index 60734ad8d..4d538989f 100644
--- a/src/util/StringUtil.cxx
+++ b/src/util/StringUtil.cxx
@@ -103,7 +103,7 @@ CopyString(char *gcc_restrict dest, const char *gcc_restrict src, size_t size)
if (length >= size)
length = size - 1;
- char *p = std::copy(src, src + length, dest);
+ char *p = std::copy_n(src, length, dest);
*p = '\0';
return p;
}