projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8030536
)
Fixed bug in f_integer.
author
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 28 Sep 1998 12:44:40 +0000
(12:44 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Mon, 28 Sep 1998 12:44:40 +0000
(12:44 +0000)
retrieval/d1_expout.c
patch
|
blob
|
history
diff --git
a/retrieval/d1_expout.c
b/retrieval/d1_expout.c
index
4f06357
..
18de3d3
100644
(file)
--- a/
retrieval/d1_expout.c
+++ b/
retrieval/d1_expout.c
@@
-4,7
+4,10
@@
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: d1_expout.c,v $
* Sebastian Hammer, Adam Dickmeiss
*
* $Log: d1_expout.c,v $
- * Revision 1.14 1998-06-08 14:26:41 adam
+ * Revision 1.15 1998-09-28 12:44:40 adam
+ * Fixed bug in f_integer.
+ *
+ * Revision 1.14 1998/06/08 14:26:41 adam
* Fixed bug in f_queryTypeDetails.
*
* Revision 1.13 1998/06/05 08:58:48 adam
* Fixed bug in f_queryTypeDetails.
*
* Revision 1.13 1998/06/05 08:58:48 adam
@@
-109,7
+112,7
@@
static int *f_integer(ExpHandle *eh, data1_node *c)
if (!is_data_tag (eh, c) || c->u.data.len > 63)
return 0;
r = (int *)odr_malloc(eh->o, sizeof(*r));
if (!is_data_tag (eh, c) || c->u.data.len > 63)
return 0;
r = (int *)odr_malloc(eh->o, sizeof(*r));
- sprintf(intbuf, "%.*s", 63, c->u.data.data);
+ sprintf(intbuf, "%.*s", c->u.data.len, c->u.data.data);
*r = atoi(intbuf);
return r;
}
*r = atoi(intbuf);
return r;
}