archivers/wad.c
changeset 622 c8e67ca63ad6
parent 610 1d8057a5d08e
child 648 5c993684b8f2
child 698 227bdc7957ca
equal deleted inserted replaced
621:d2d994be1e61 622:c8e67ca63ad6
   307 {
   307 {
   308     void *fh = NULL;
   308     void *fh = NULL;
   309     PHYSFS_uint32 fileCount;
   309     PHYSFS_uint32 fileCount;
   310     PHYSFS_uint32 directoryOffset;
   310     PHYSFS_uint32 directoryOffset;
   311     WADentry *entry;
   311     WADentry *entry;
   312     char lastDirectory[9],buffer[9];
   312     char lastDirectory[9];
   313 
   313 
   314     lastDirectory[8] = 0; /* Make sure lastDirectory stays null-terminated. */
   314     lastDirectory[8] = 0; /* Make sure lastDirectory stays null-terminated. */
   315 
   315 
   316     BAIL_IF_MACRO(!wad_open(name, forWriting, &fh, &fileCount,&directoryOffset), NULL, 0);
   316     BAIL_IF_MACRO(!wad_open(name, forWriting, &fh, &fileCount,&directoryOffset), NULL, 0);
   317     info->entryCount = fileCount;
   317     info->entryCount = fileCount;