137
137
In this senerio, the buffer is statically preallocated,
138
138
so we have to create an all-new malloc since we overflowed
145
144
memcpy(new_ptr, array->buffer,
146
145
array->elements * array->size_of_element);
154
156
array->buffer= (unsigned char*) new_ptr;
155
157
array->max_element+=array->alloc_increment;