aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-ecc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-ecc.c')
-rw-r--r--src/util/gnunet-ecc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/gnunet-ecc.c b/src/util/gnunet-ecc.c
index 94ffb4308..d2253337c 100644
--- a/src/util/gnunet-ecc.c
+++ b/src/util/gnunet-ecc.c
@@ -96,8 +96,7 @@ create_keys (const char *fn, const char *prefix)
96 } 96 }
97 if (NULL != prefix) 97 if (NULL != prefix)
98 { 98 {
99 GNUNET_strlcpy (vanity, prefix, sizeof (vanity)); 99 len = GNUNET_strlcpy (vanity, prefix, sizeof (vanity));
100 len = GNUNET_MIN (strlen (prefix), KEY_STR_LEN);
101 n = len * 5 / 8; 100 n = len * 5 / 8;
102 rest = len * 5 % 8; 101 rest = len * 5 % 8;
103 102