/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
#if HAVE_CONFIG_H
rec->u.intermediateFragment->u.notExternallyTagged = oct;
oct->len = status.st_size;
-#if OCT_SIZE
- oct->size = status.st_size;
-#endif
- oct->buf = (unsigned char *) odr_malloc (out, oct->len);
+ oct->buf = (char *) odr_malloc (out, oct->len);
if (fread(oct->buf, 1, oct->len, inf) != (size_t) oct->len)
{
printf("Incomplete read of file %s\n", fname);