bugfix and cleanup of c-buffer resize