Ignore:
Timestamp:
Apr 29, 2011, 12:24:38 AM (11 years ago)
Author:
Sam Hocevar
Message:

tool: implement the rename' and del' commands.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/specs.cpp

    r546 r548  
    568568    {
    569569        spec_entry *se = entries[i];
    570         if (se->data)
    571             free(data);
    572 
     570        free(se->data);
    573571        se->data = malloc(se->size);
    574572        fp->seek(se->offset, SEEK_SET);
     
    720718      fp->read(&len,1);
    721719      se->type=type;
     720      se->data = NULL;
    722721      se->name=dp+sizeof(spec_entry);
    723722      fp->read(se->name,len);
Note: See TracChangeset for help on using the changeset viewer.