Changeset 5215 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Sep 22, 2005, 4:02:08 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_buffer.cc
r5214 r5215 37 37 this->lineCount = 0; 38 38 this->keepBufferArray[0] = '\0'; 39 this->bufferArray[0] = '\0'; 39 40 this->keepBuffer = false; 40 41 this->buffer = new tList<char>; … … 101 102 this->buffer = new tList<char>; 102 103 this->bufferIterator = this->buffer->getIterator(); 104 103 105 } 104 106 … … 165 167 { 166 168 // newLineEnd = newLineBegin + strlen(newLineBegin); 167 strcpy(this->keepBufferArray, newLineBegin); 169 unsigned int len = strlen(newLineBegin); 170 strncpy(this->keepBufferArray, newLineBegin, len); 171 this->keepBufferArray[len] = '\0'; 168 172 this->keepBuffer = true; 169 173 break;
Note: See TracChangeset
for help on using the changeset viewer.