diff options
author | Max Kellermann <max@duempel.org> | 2015-03-02 22:35:59 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-03-02 22:35:59 +0100 |
commit | c19292c036ecc8791ad985968638baa76b7f0d3c (patch) | |
tree | 1d946c03299bfe98fea4446c1e6b166666d85de1 /src/util/StringUtil.cxx | |
parent | 4ee81e6a3d0a6091f9e3e23c0cfd56e59f50a387 (diff) | |
download | mpd-c19292c036ecc8791ad985968638baa76b7f0d3c.tar.gz mpd-c19292c036ecc8791ad985968638baa76b7f0d3c.tar.xz mpd-c19292c036ecc8791ad985968638baa76b7f0d3c.zip |
Util/StringUtil: use std::copy_n()
Diffstat (limited to '')
-rw-r--r-- | src/util/StringUtil.cxx | 2 |
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; } |