--- src/fetch/z3950connection.cpp +++ src/fetch/z3950connection.cpp @@ -442,13 +442,13 @@ QString Z3950Connection::toXML(const QCS // first 5 bytes are length bool ok; - int len = marc_.left(5).toInt(&ok); + size_t len = marc_.left(5).toUInt(&ok); if(ok && (len < 25 || len > 100000)) { myDebug() << "Z3950Connection::toXML() - bad length: " << (ok ? len : -1) << endl; return QString::null; } - char* result; + const char* result; int r = yaz_marc_decode_buf(mt, marc_, -1, &result, &len); if(r <= 0) { myDebug() << "Z3950Connection::toXML() - can't decode buffer" << endl;