More string switching.

This commit is contained in:
Ben Vanik
2014-08-16 16:46:20 -07:00
parent 7c5fa88661
commit ead74f2cdb
10 changed files with 35 additions and 40 deletions

View File

@@ -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;
}
};