projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Version 5.0.15
[yaz-moved-to-github.git]
/
client
/
admin.c
diff --git
a/client/admin.c
b/client/admin.c
index
ed9db68
..
54167f6
100644
(file)
--- a/
client/admin.c
+++ b/
client/admin.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* 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
* 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;
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);
if (fread(oct->buf, 1, oct->len, inf) != (size_t) oct->len)
{
printf("Incomplete read of file %s\n", fname);