mirror of
https://github.com/topjohnwu/cxx.git
synced 2025-02-24 18:12:14 +00:00
Fix unqualified strncpy call
This commit is contained in:
parent
cc1ae76bd0
commit
504cf3cfb8
@ -167,7 +167,7 @@ std::ostream &operator<<(std::ostream &os, const Str &s) {
|
||||
extern "C" {
|
||||
const char *cxxbridge05$error(const char *ptr, size_t len) {
|
||||
char *copy = new char[len];
|
||||
strncpy(copy, ptr, len);
|
||||
std::strncpy(copy, ptr, len);
|
||||
return copy;
|
||||
}
|
||||
} // extern "C"
|
||||
|
Loading…
x
Reference in New Issue
Block a user