aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cge/cfile.cpp')
-rw-r--r--engines/cge/cfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/cge/cfile.cpp b/engines/cge/cfile.cpp
index af29ec5df7..5cbf078610 100644
--- a/engines/cge/cfile.cpp
+++ b/engines/cge/cfile.cpp
@@ -40,7 +40,7 @@ IoBuf::IoBuf(IOMODE mode, CRYPT *crpt)
_lim(0) {
debugC(1, kDebugFile, "IoBuf::IoBuf(%d, crpt)", mode);
- _buff = farnew(uint8, IOBUF_SIZE);
+ _buff = (uint8 *) malloc(sizeof(uint8) * IOBUF_SIZE);
if (_buff == NULL)
error("No core for I/O");
}
@@ -53,7 +53,7 @@ IoBuf::IoBuf(const char *name, IOMODE mode, CRYPT *crpt)
_lim(0) {
debugC(1, kDebugFile, "IoBuf::IoBuf(%s, %d, crpt)", name, mode);
- _buff = farnew(uint8, IOBUF_SIZE);
+ _buff = (uint8 *) malloc(sizeof(uint8) * IOBUF_SIZE);
if (_buff == NULL)
error("No core for I/O [%s]", name);
}