cacorrect: fix a segfault for very small buffers.