Util/StringUtil: use std::copy_n()

This commit is contained in:
Max Kellermann 2015-03-02 22:35:59 +01:00
parent 4ee81e6a3d
commit c19292c036
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}