Fixed regression. I'm not making new builds though.

This commit is contained in:
David Anderson 2008-08-16 23:32:58 +00:00
parent 72bebf9af8
commit f201592ddb

View File

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