- sizeString = (char*) malloc(growingBuffer.getLimit() + 1);
- growingBuffer.read(sizeString, growingBuffer.getLimit());
- growingBuffer.clear();
- tempBuffer++;
+ stringLength = (char*) pipeIndex - tempBuffer;
+ sizeString = (char*) malloc(stringLength + 1);
+ memcpy(sizeString, tempBuffer, stringLength);
+ sizeString[stringLength] = '\0';
+ tempBuffer = pipeIndex + 1;