|
|
@@ -1169,8 +1169,10 @@ ConfigurationData::ConfigurationData(const char* Data, int Length) : |
|
|
|
myBufferSize(Length), // and it's length. |
|
|
|
myIndex(0), // Our Index is zero |
|
|
|
myLine(1) { // We start on line 1 |
|
|
|
myDataBuffer = new char[myBufferSize]; // Allocate a buffer. |
|
|
|
myDataBuffer = new char[myBufferSize + 1]; // Allocate a buffer, with |
|
|
|
// room for null byte. |
|
|
|
memcpy(myDataBuffer, Data, myBufferSize); // Copy the data. |
|
|
|
myDataBuffer[myBufferSize] = '\0'; // Null-terminate. |
|
|
|
} |
|
|
|
|
|
|
|
ConfigurationData::ConfigurationData(const char* FileName) : |