Forgot to duplicate the file name on Windows.

This commit is contained in:
Moritz Bunkus 2003-09-17 18:55:45 +00:00
parent 1cff8b6ba9
commit ff40fde6c9

View File

@ -148,10 +148,13 @@ mm_io_c::mm_io_c(const char *path, const open_mode mode) {
_eof = false;
if ((HANDLE)file == (HANDLE)0xFFFFFFFF)
throw exception();
file_name = safestrdup(path);
}
mm_io_c::mm_io_c() {
file = NULL;
safefree(file_name);
}
mm_io_c::~mm_io_c() {