/* This file is part of the Zebra server.
- Copyright (C) 2004-2013 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
break;
case Z_Term_general:
term->which = Z_Term_general;
- term->u.general = odr_malloc(r->stream, sizeof(*term->u.general));
- term->u.general->size = term->u.general->len = len;
- term->u.general->buf = odr_malloc(r->stream, len);
- memcpy(term->u.general->buf, outbuf, len);
+ term->u.general = odr_create_Odr_oct(r->stream,
+#if YAZ_VERSIONL < 0x50000
+ (unsigned char *)
+#endif
+ outbuf, len);
break;
default:
term->which = Z_Term_general;