Commit a4b1633e authored by Max Kellermann's avatar Max Kellermann

util/ConcatString: use std::copy_n() instead of memcpy()

parent fea211a1
......@@ -30,6 +30,8 @@
#ifndef CONCAT_STRING_HXX
#define CONCAT_STRING_HXX
#include <algorithm>
#include <string.h>
template<typename... Args>
......@@ -58,7 +60,7 @@ template<>
void
StringCat(char *p, const size_t *lengths, const char *a)
{
memcpy(p, a, *lengths);
std::copy_n(a, *lengths, p);
}
#endif
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