X-Git-Url: http://git.indexdata.com/?p=yazproxy-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-proxy.cpp;h=943281cf51131dd7c1b2b7ba1c4ffb5e223f7a1d;hp=8dc5e604aa7fc23e9d22258ac926ed1e73d02c07;hb=92ffd77b588a888d51f4b58300ada048a31bcdc1;hpb=9fcdfed653560d961df0477ca6f04c41c8576706 diff --git a/src/yaz-proxy.cpp b/src/yaz-proxy.cpp index 8dc5e60..943281c 100644 --- a/src/yaz-proxy.cpp +++ b/src/yaz-proxy.cpp @@ -3570,7 +3570,8 @@ void Yaz_Proxy::handle_incoming_Z_PDU(Z_APDU *apdu) #if YAZ_VERSIONL < 0x50000 m_referenceId->size = m_referenceId->len; m_referenceId->buf = (unsigned char *) - nmem_strdupn(m_referenceId_mem, (*refid)->buf, (*refid)->len); + nmem_strdupn(m_referenceId_mem, (const char *) + (*refid)->buf, (*refid)->len); #else m_referenceId->buf = nmem_strdupn(m_referenceId_mem, (*refid)->buf, (*refid)->len);