aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorMax Horn2011-05-23 19:20:56 +0200
committerMax Horn2011-05-23 19:39:26 +0200
commit6c5f50c246062bcb50a20efe7951be7e23449ca0 (patch)
tree9d8bb0bbb869fac5ba1387d90894fee50c8325ea /engines/agi
parent20cad6e8b6fe9ae843245697e872256c4ca1e545 (diff)
downloadscummvm-rg350-6c5f50c246062bcb50a20efe7951be7e23449ca0.tar.gz
scummvm-rg350-6c5f50c246062bcb50a20efe7951be7e23449ca0.tar.bz2
scummvm-rg350-6c5f50c246062bcb50a20efe7951be7e23449ca0.zip
COMMON: Add exit() to list of forbidden symbols
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/loader_v2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/loader_v2.cpp b/engines/agi/loader_v2.cpp
index f5f8830b43..a2ac6f0111 100644
--- a/engines/agi/loader_v2.cpp
+++ b/engines/agi/loader_v2.cpp
@@ -149,11 +149,11 @@ uint8 *AgiLoader_v2::loadVolRes(struct AgiDir *agid) {
fp.read(&x, 5);
if ((sig = READ_BE_UINT16((uint8 *) x)) == 0x1234) {
agid->len = READ_LE_UINT16((uint8 *) x + 3);
- data = (uint8 *) calloc(1, agid->len + 32);
+ data = (uint8 *)calloc(1, agid->len + 32);
if (data != NULL) {
fp.read(data, agid->len);
} else {
- exit(1);
+ error("AgiLoader_v2::loadVolRes out of memory");
}
} else {
warning("AgiLoader_v2::loadVolRes: bad signature %04x", sig);