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
Update RPM requires
[yaz-moved-to-github.git]
/
src
/
ber_any.c
diff --git
a/src/ber_any.c
b/src/ber_any.c
index
be23946
..
7243e3d
100644
(file)
--- a/
src/ber_any.c
+++ b/
src/ber_any.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.
*/
* See the file LICENSE for details.
*/
@@
-25,15
+25,15
@@
int ber_any(ODR o, Odr_any **p)
switch (o->direction)
{
case ODR_DECODE:
switch (o->direction)
{
case ODR_DECODE:
- if ((res = completeBER(o->bp, odr_max(o))) <= 0) /* FIX THIS */
+ if ((res = completeBER(o->op->bp, odr_max(o))) <= 0) /* FIX THIS */
{
odr_seterror(o, OPROTO, 2);
return 0;
}
(*p)->buf = (char *)odr_malloc(o, res);
{
odr_seterror(o, OPROTO, 2);
return 0;
}
(*p)->buf = (char *)odr_malloc(o, res);
- memcpy((*p)->buf, o->bp, res);
+ memcpy((*p)->buf, o->op->bp, res);
(*p)->len = res;
(*p)->len = res;
- o->bp += res;
+ o->op->bp += res;
return 1;
case ODR_ENCODE:
if (odr_write(o, (*p)->buf, (*p)->len) < 0)
return 1;
case ODR_ENCODE:
if (odr_write(o, (*p)->buf, (*p)->len) < 0)