aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/misc.c b/g10/misc.c
index b0e9543ab..f4728eb5d 100644
--- a/g10/misc.c
+++ b/g10/misc.c
@@ -436,7 +436,7 @@ pct_expando(const char *string,struct expando_args *args)
if(args->pk)
fingerprint_from_pk(args->pk,array,&len);
else
- memset(array,0,MAX_FINGERPRINT_LEN);
+ memset(array,0, (len=MAX_FINGERPRINT_LEN));
if(idx+(len*2)<maxlen)
{