X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-z-assoc.cpp;h=cd7046bd919f8454f1f5eda58df3820afebe12a5;hp=16637575223de932bb1d4a6e29ce2f05e23f26c3;hb=HEAD;hpb=32a5aaaa9a78f9ee028090496a85c3aa8526ea27 diff --git a/src/yaz-z-assoc.cpp b/src/yaz-z-assoc.cpp index 1663757..cd7046b 100644 --- a/src/yaz-z-assoc.cpp +++ b/src/yaz-z-assoc.cpp @@ -1,5 +1,5 @@ /* This file is part of the yazpp toolkit. - * Copyright (C) 1998-2013 Index Data and Mike Taylor + * Copyright (C) Index Data * See the file LICENSE for details. */ @@ -451,7 +451,11 @@ Z_ReferenceId* Z_Assoc::getRefID(char* str) Z_ReferenceId* id = NULL; if (str) - id = odr_create_Odr_oct(m_p->odr_out, str, strlen(str)); + id = odr_create_Odr_oct(m_p->odr_out, +#if YAZ_VERSIONL < 0x50000 + (unsigned char *) +#endif + str, strlen(str)); return id; }