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:
92e360a
)
GFS: fix sizeof: saved by the bell
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 2 Mar 2010 12:44:15 +0000
(13:44 +0100)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 2 Mar 2010 12:44:15 +0000
(13:44 +0100)
src/seshigh.c
patch
|
blob
|
history
diff --git
a/src/seshigh.c
b/src/seshigh.c
index
44d6619
..
bd1ec84
100644
(file)
--- a/
src/seshigh.c
+++ b/
src/seshigh.c
@@
-2088,7
+2088,7
@@
static int process_gdu_response(association *assoc, request *req, Z_GDU *res)
*/
static int process_z_response(association *assoc, request *req, Z_APDU *res)
{
- Z_GDU *gres = (Z_GDU *) odr_malloc(assoc->encode, sizeof(*res));
+ Z_GDU *gres = (Z_GDU *) odr_malloc(assoc->encode, sizeof(*gres));
gres->which = Z_GDU_Z3950;
gres->u.z3950 = res;