/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2012 Index Data
+ * Copyright (C) 1995-2013 Index Data
* See the file LICENSE for details.
*/
}
(*p)->buf = (unsigned char *)odr_malloc(o, res);
memcpy((*p)->buf, o->bp, res);
- (*p)->len = (*p)->size = res;
+ (*p)->len = res;
+#if OCT_SIZE
+ (*p)->size = res;
+#endif
o->bp += res;
return 1;
case ODR_ENCODE: