mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2025-04-07 07:38:14 +00:00
Shrink Vectorize buffer and use MemoryMgr calls
This lets the build run in Mini vMac (8 MB Mac II). For some reason, calloc can't create buffers as large as NewPtr.
This commit is contained in:
parent
3d17253346
commit
3fd8dde36b
@ -403,11 +403,13 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
dest.buf = dest.at = calloc(0x400000, 1);
|
||||
dest.buf = dest.at = NewPtr(0x100000);
|
||||
if(!dest.buf)
|
||||
{
|
||||
fprintf(stderr, ERRSTR "Failed to calloc 4MB dest buffer\n");
|
||||
return 1;
|
||||
}
|
||||
memset(dest.buf, 0, 0x100000);
|
||||
|
||||
/* Create a First record (remember that MPW objects are fully ascending) */
|
||||
dest.at[0] = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user