From 2c9791db555cc571eaedfa71444da05454bd052a Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 6 Jun 2007 18:12:30 +0000 Subject: First steps towards supporting W32. This is mainly source code reorganization. Update gnulib. g10/ does currently not build. --- scd/app-openpgp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scd/app-openpgp.c') diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index a02ff0396..2b7263171 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -2223,13 +2223,13 @@ do_sign (app_t app, const char *keyidstr, int hashalgo, else if (indatalen == (15 + 20) && hashalgo == GCRY_MD_SHA1 && !memcmp (indata, sha1_prefix, 15)) { - indata += 15; + indata = (const char*)indata + 15; indatalen -= 15; } else if (indatalen == (15 + 20) && hashalgo == GCRY_MD_RMD160 && !memcmp (indata, rmd160_prefix, 15)) { - indata += 15; + indata = (const char*)indata + 15; indatalen -= 15; } else -- cgit v1.2.3