How about setting this, after setting up buffer[123], to max(buffer2_size, 64), just to be clear ?