More string switching.
This commit is contained in:
@@ -272,8 +272,8 @@ public:
|
||||
if (buffer == NULL || length == 0) {
|
||||
return NULL;
|
||||
}
|
||||
auto copy = (char*)xe_calloc(length+1);
|
||||
xestrncpya(copy, length+1, buffer, length);
|
||||
auto copy = (char*)xe_calloc(length + 1);
|
||||
std::strncpy(copy, buffer, length);
|
||||
return copy;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user