From 5a430dc15fb745b6d11bca0178717d03d66bb013 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 5 Oct 2004 15:08:45 +0000 Subject: [PATCH] 2004-10-05 Marcus Brinkmann * op-support.c (_gpgme_op_data_lookup): Use char pointer for pointer arithmetic. --- trunk/gpgme/ChangeLog | 5 +++++ trunk/gpgme/op-support.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index ea8efb4..7d6c5af 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,8 @@ +2004-10-05 Marcus Brinkmann + + * op-support.c (_gpgme_op_data_lookup): Use char pointer for + pointer arithmetic. + 2004-09-30 Marcus Brinkmann * gpgme.m4: Implement the --api-version check. diff --git a/trunk/gpgme/op-support.c b/trunk/gpgme/op-support.c index e406af9..be42e75 100644 --- a/trunk/gpgme/op-support.c +++ b/trunk/gpgme/op-support.c @@ -50,7 +50,7 @@ _gpgme_op_data_lookup (gpgme_ctx_t ctx, ctx_op_data_id_t type, void **hook, data->next = ctx->op_data; data->type = type; data->cleanup = cleanup; - data->hook = ((void *) data) + sizeof (struct ctx_op_data); + data->hook = (void *) (((char *) data) + sizeof (struct ctx_op_data)); ctx->op_data = data; } *hook = data->hook; -- 2.26.2