52 this->descriptionUsed = 0;
53 this->descriptionSize = rh.descriptionSize;
55 if(rh.descriptionBuffer == NULL)
58 this->descriptionBuffer = NULL;
63 this->descriptionBuffer = (
char *) malloc(descriptionSize+1);
64 if(this->descriptionBuffer != NULL)
66 memcpy(this->descriptionBuffer,rh.descriptionBuffer,descriptionSize);
67 this->descriptionUsed = rh.descriptionUsed;
73 this->stackSize = rh.stackSize;
75 if(rh.stackBuffer == NULL)
78 this->stackBuffer = NULL;
82 this->stackBuffer = (
char *) malloc(stackSize+1);
83 if(this->stackBuffer != NULL)
85 memcpy(this->stackBuffer,rh.stackBuffer,stackSize);
86 this->stackUsed = rh.stackUsed;
97 size_t appendedSize = strlen(buffer);
100 if( appendedSize > (descriptionSize - descriptionUsed))
102 appendedSize = (descriptionSize - descriptionUsed);
106 strncpy(descriptionBuffer+descriptionUsed,
111 descriptionUsed += appendedSize;
116 if(descriptionBuffer != NULL)
117 descriptionBuffer[descriptionUsed] =
'\0';