From: Adam Dickmeiss Date: Tue, 2 Mar 2010 12:44:15 +0000 (+0100) Subject: GFS: fix sizeof: saved by the bell X-Git-Tag: v4.0.2~7 X-Git-Url: http://lists.indexdata.dk/cgi-bin?a=commitdiff_plain;h=5c0e243664a63c8522d400abbda6dc892cae4349;hp=92e360a6e22fc5fda22d7f6a6449c3c8f0ee8fb9;p=yaz-moved-to-github.git GFS: fix sizeof: saved by the bell --- diff --git a/src/seshigh.c b/src/seshigh.c index 44d6619..bd1ec84 100644 --- 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;