From 92ffd77b588a888d51f4b58300ada048a31bcdc1 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 11 Sep 2013 11:48:33 +0200 Subject: [PATCH] Add cast (fix YAZ4 compile in previous commit) --- src/yaz-proxy.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 1.7.10.4