X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fadmin.c;h=54167f60f4da46efb9f9797a0f5c1205d3325ab7;hp=ed9db68d38b16b5d4547cfd22c5452b0628446f8;hb=7fbf3f2eceeb0978881992fbf1e77cd6fc3c4a9b;hpb=cabcc223cd47503763e7c42969e3be30c58276af diff --git a/client/admin.c b/client/admin.c index ed9db68..54167f6 100644 --- a/client/admin.c +++ b/client/admin.c @@ -1,5 +1,5 @@ /* 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 @@ -238,10 +238,7 @@ int cmd_adm_import(const char *arg) 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);