mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-05-05 16:30:17 +10:00
Corrected usage of 'Toy_allocateTable'
This commit is contained in:
+1
-1
@@ -206,7 +206,7 @@ CmdLine parseCmdLine(int argc, const char* argv[]) {
|
||||
|
||||
//total space to reserve
|
||||
cmd.infileLength = strlen(argv[i]) + 1;
|
||||
cmd.infileLength = (cmd.infileLength + 3) & ~3; //BUGFIX: align to word size for malloc()
|
||||
cmd.infileLength = (cmd.infileLength + 3) & ~3; //BUGFIX: align to word size
|
||||
cmd.infile = malloc(cmd.infileLength);
|
||||
|
||||
if (cmd.infile == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user