Fixed regression. I'm not making new builds though.
This commit is contained in:
parent
72bebf9af8
commit
f201592ddb
|
@ -21,7 +21,11 @@ memfile_t *memfile_creat(const char *name, size_t init)
|
||||||
pmf = (memfile_t *)malloc(sizeof(memfile_t));
|
pmf = (memfile_t *)malloc(sizeof(memfile_t));
|
||||||
memcpy(pmf, &mf, sizeof(memfile_t));
|
memcpy(pmf, &mf, sizeof(memfile_t));
|
||||||
|
|
||||||
|
#if defined _MSC_VER
|
||||||
pmf->name = _strdup(name);
|
pmf->name = _strdup(name);
|
||||||
|
#else
|
||||||
|
pmf->name = strdup(name);
|
||||||
|
#endif
|
||||||
|
|
||||||
return pmf;
|
return pmf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user