summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2019-06-27 12:21:49 +0200
committerlurchi <lurchi@strangeplace.net>2019-06-27 12:21:49 +0200
commit40a111b93ce2d38b875c2eda3e23d6b89a256599 (patch)
treef1dc401b6981f2a7a8ad691a9db9e80d40d3270e
parent4c2a06deba76e8be4098059b860e76db3cf4ae7e (diff)
return value of GNUNET_strlcpy can be used
-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;