aboutsummaryrefslogtreecommitdiff
path: root/engines/cge/cfile.cpp
diff options
context:
space:
mode:
authorStrangerke2011-07-19 08:09:16 +0200
committerStrangerke2011-07-19 08:09:16 +0200
commit9a148a27cc44ba089e57ea07996a868c89c2287f (patch)
tree230b696d248ad3e6c7b9d741122bc0dbfd79aeec /engines/cge/cfile.cpp
parenta073e78ba1fb4be357660a03aa0c387d80df3aab (diff)
downloadscummvm-rg350-9a148a27cc44ba089e57ea07996a868c89c2287f.tar.gz
scummvm-rg350-9a148a27cc44ba089e57ea07996a868c89c2287f.tar.bz2
scummvm-rg350-9a148a27cc44ba089e57ea07996a868c89c2287f.zip
CGE: Remove macro farnew
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);
}