mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-06 19:38:41 +03:00
full overriding api supported
This commit is contained in:
commit
93c8a5b693
6 changed files with 170 additions and 2 deletions
|
@ -194,7 +194,7 @@ static const char* mi_getenv(const char* name) {
|
|||
const char* s = getenv(name);
|
||||
if (s == NULL) {
|
||||
char buf[64+1];
|
||||
strncpy_s(buf,64,name,64); buf[64] = 0;
|
||||
mi_strlcpy(buf,name,64);
|
||||
for (size_t i = 0; i < strlen(buf); i++) {
|
||||
buf[i] = toupper(name[i]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue