aboutsummaryrefslogtreecommitdiffstats
path: root/g10/app-openpgp.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/app-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/app-openpgp.c b/g10/app-openpgp.c
index ff0143c55..102e52329 100644
--- a/g10/app-openpgp.c
+++ b/g10/app-openpgp.c
@@ -1789,7 +1789,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;