Serious work on JString and some minor MString ajustments.

This commit is contained in:
barant committed 2024-12-11 16:58:34 -08:00
1 parent 7531c885a7
commit c6e0486c14
8 files changed
+51 -13

No files matched your search

+1
View File
@@ -258,6 +258,7 @@ namespace coreutils {
int newBufferSize = ((size / 256) + 1) * 256;
if (bufferSize != newBufferSize) {
bufferSize = newBufferSize;
std::cout << "Adjusting storage size to " << bufferSize << " to accomodate " << size << "bytes." << std::endl;
data = (char *)realloc(data, bufferSize);
cursor = data + cursorOffset;
}