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