In dovecot-patch2.diff > data = _stream->buffer + _stream->skip; Should be: data = (unsigned char *)_stream->buffer + _stream->skip; Sorry for this :P -- Len7hir