summaryrefslogtreecommitdiff
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)
}
if (NULL != prefix)
{
- GNUNET_strlcpy (vanity, prefix, sizeof (vanity));
- len = GNUNET_MIN (strlen (prefix), KEY_STR_LEN);
+ len = GNUNET_strlcpy (vanity, prefix, sizeof (vanity));
n = len * 5 / 8;
rest = len * 5 % 8;