From f6ccc686b07f5d1cbf77a1768f60f8a3ad41dd7c Mon Sep 17 00:00:00 2001 From: caro Date: Sat, 16 Jan 2010 12:07:18 +0000 Subject: [PATCH] eet_cipher.c: Fix arithmetic pointer on void * git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eet@45211 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- ChangeLog | 4 ++++ src/lib/eet_cipher.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4848733..5dd3fcb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -305,3 +305,7 @@ 2010-01-15 Cedric BAIL * Fix amalgamation. + +2010-01-16 Vincent Torri + + * eet_cipher.c: Fix arithmetic pointer on void * diff --git a/src/lib/eet_cipher.c b/src/lib/eet_cipher.c index 903e4b6..34df38b 100644 --- a/src/lib/eet_cipher.c +++ b/src/lib/eet_cipher.c @@ -553,7 +553,7 @@ eet_identity_check(const void *data_base, unsigned int data_length, if (sign_len + cert_len + sizeof(int) * 3 > signature_length) return NULL; /* Update the signature and certificate pointer */ - sign = signature_base + sizeof(int) * 3; + sign = (unsigned char *)signature_base + sizeof(int) * 3; cert_der = sign + sign_len; # ifdef HAVE_GNUTLS -- 2.7.4