aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-openpgp.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--scd/app-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 842881f3a..47ff8abc2 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -1828,7 +1828,7 @@ do_writekey (app_t app, ctrl_t ctrl,
if (rsa_e_len < 4)
{
/* Right justify E. */
- memmove (tp+4-rsa_e_len, tp, 4-rsa_e_len);
+ memmove (tp+4-rsa_e_len, tp, rsa_e_len);
memset (tp, 0, 4-rsa_e_len);
}
tp += 4;