*** map.c Thu Mar 9 09:31:33 2000 --- map.c Sun Apr 9 14:41:05 2000 *************** *** 181,186 **** --- 181,187 ---- } if( access(filename, R_OK) < 0 ) { + perror("Access"); dbg("Error trying to access \"%s\"\n", filename); return false; } *************** *** 252,258 **** case SIZE: sscanf(buf, "%d %d\n", &level->map[mapNum].width, &level->map[mapNum].height); mapMode++; ! level->map[mapNum].data = (char *)malloc(level->map[mapNum].width * level->map[mapNum].height * sizeof(char)); *level->map[mapNum].data = 0; break; case DATA: --- 253,259 ---- case SIZE: sscanf(buf, "%d %d\n", &level->map[mapNum].width, &level->map[mapNum].height); mapMode++; ! level->map[mapNum].data = (char *)malloc(level->map[mapNum].width * level->map[mapNum].height * sizeof(char) + 1); *level->map[mapNum].data = 0; break; case DATA: