From: Adam Dickmeiss Date: Wed, 11 Sep 2013 09:48:33 +0000 (+0200) Subject: Add cast (fix YAZ4 compile in previous commit) X-Git-Tag: v1.3.9~3 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=92ffd77b588a888d51f4b58300ada048a31bcdc1;p=yazproxy-moved-to-github.git Add cast (fix YAZ4 compile in previous commit) --- 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);