modified: scroll.exe
modified: src/lib/bitmap.c
modified: src/lib/mapread.c
bitmap_t result;\r
long bufSize;\r
int index;\r
bitmap_t result;\r
long bufSize;\r
int index;\r
\r
/* open the PCX file for reading */\r
file = fopen(filename, "rb");\r
\r
/* open the PCX file for reading */\r
file = fopen(filename, "rb");\r
}\r
\r
/* load the first part of the pcx file */\r
}\r
\r
/* load the first part of the pcx file */\r
- loadPcxStage1(file, &result);\r
+ loadPcxStage1(file, &result);
\r
/* allocate the buffer */\r
\r
/* allocate the buffer */\r
- bufSize = result.width * result.height;\r
- result.data = malloc(bufSize);\r
+ bufSize = result.width * result.height;
+ result.data = malloc(bufSize); //it breaks right here~
if(!result.data) {\r
printf("Could not allocate memory for bitmap data.");\r
fclose(file);\r
if(!result.data) {\r
printf("Could not allocate memory for bitmap data.");\r
fclose(file);\r
}
} else {
//printf("================================================================================%s================================================================================", js);
}
} else {
//printf("================================================================================%s================================================================================", js);
- js_sv=malloc(sizeof(char)*10);
+ //js_sv=malloc(sizeof(char)*10);
dump(js, tok, p.toknext, 0, map, 0);
eof_expected = 1;
}
}
dump(js, tok, p.toknext, 0, map, 0);
eof_expected = 1;
}
}
- //free(js);
- //free(tok);