aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/app-openpgp.c4
1 files changed, 2 insertions, 2 deletions
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