Commit c19292c0 authored by Max Kellermann's avatar Max Kellermann

Util/StringUtil: use std::copy_n()

parent 4ee81e6a
......@@ -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;
}
......
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