Commit 79be003f authored by Chen Bill's avatar Chen Bill Committed by GitHub

BufferIO: fix CopyString (#2615)

parent 4423a82c
...@@ -51,7 +51,7 @@ public: ...@@ -51,7 +51,7 @@ public:
return l; return l;
} }
template<size_t N> template<size_t N>
static void CopyString(const char* src, wchar_t(&dst)[N]) { static void CopyString(const char* src, char(&dst)[N]) {
dst[0] = 0; dst[0] = 0;
std::strncat(dst, src, N - 1); std::strncat(dst, src, N - 1);
} }
......
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