Changeset 3198 for code/trunk/src/util/OutputBuffer.cc
- Timestamp:
- Jun 20, 2009, 4:27:38 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/util/OutputBuffer.cc
r3196 r3198 36 36 namespace orxonox 37 37 { 38 const int OUTPUTBUFFER_MAX_LINE_LENGTH = 16384; //! The maximal number of lines that can be stored within the OutputBuffer.39 40 38 /** 41 39 @brief Adds a new listener to the list. … … 105 103 bool OutputBuffer::getLine(std::string* output) 106 104 { 107 char line[OUTPUTBUFFER_MAX_LINE_LENGTH]; 108 109 this->stream_.getline(line, OUTPUTBUFFER_MAX_LINE_LENGTH); 110 (*output) = std::string(line); 105 std::getline(this->stream_, *output); 111 106 112 107 bool eof = this->stream_.eof();
Note: See TracChangeset
for help on using the changeset viewer.