Changeset 5209 in orxonox.OLD for trunk/src/lib/util/substring.cc
- Timestamp:
- Sep 20, 2005, 11:22:46 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/substring.cc
r5200 r5209 70 70 } 71 71 72 l = strlen( offset); 72 73 strings[i] = new char[l + 1]; 73 l = strlen( offset);74 74 strncpy( strings[i], offset, l); 75 75 strings[i][l] = '\0';
Note: See TracChangeset
for help on using the changeset viewer.