mirror of
https://github.com/elliotnunn/mac-rom.git
synced 2025-08-08 22:25:42 +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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user