Changeset 16eb32 for molecuilder/src/Helpers/MemDebug.cpp
- Timestamp:
- Apr 29, 2010, 3:30:55 PM (16 years ago)
- Children:
- 6a314f
- Parents:
- 5d1a94
- File:
-
- 1 edited
-
molecuilder/src/Helpers/MemDebug.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/Helpers/MemDebug.cpp
r5d1a94 r16eb32 27 27 struct info_t { 28 28 enum {length = 64}; 29 char file[length ];29 char file[length+1]; 30 30 int line; 31 31 size_t nbytes; … … 155 155 entry->info.isUsed = true; 156 156 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'; 158 158 entry->info.line=line; 159 159 // the space starts behind the info
Note:
See TracChangeset
for help on using the changeset viewer.
