Ignore:
Timestamp:
Apr 29, 2010, 3:30:55 PM (16 years ago)
Author:
Tillmann Crueger <crueger@…>
Children:
6a314f
Parents:
5d1a94
Message:

FIX: Stupid bug in the Debug-new that destroyed some memory

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/Helpers/MemDebug.cpp

    r5d1a94 r16eb32  
    2727    struct info_t {
    2828      enum {length = 64};
    29       char file[length];
     29      char file[length+1];
    3030      int line;
    3131      size_t nbytes;
     
    155155  entry->info.isUsed = true;
    156156  strncpy(entry->info.file,file,Memory::entry_t::info_t::length);
    157   entry->info.file[255] = '\0';
     157  entry->info.file[Memory::entry_t::info_t::length] = '\0';
    158158  entry->info.line=line;
    159159  // the space starts behind the info
Note: See TracChangeset for help on using the changeset viewer.