projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c2a06d
)
return value of GNUNET_strlcpy can be used
author
lurchi
<lurchi@strangeplace.net>
Thu, 27 Jun 2019 10:21:49 +0000
(12:21 +0200)
committer
lurchi
<lurchi@strangeplace.net>
Thu, 27 Jun 2019 10:21:49 +0000
(12:21 +0200)
src/util/gnunet-ecc.c
patch
|
blob
|
history
diff --git
a/src/util/gnunet-ecc.c
b/src/util/gnunet-ecc.c
index 94ffb4308f7d5c286f404fc9af990d7010435868..d2253337cd14421fb6d0d78ad7d0097ee05416f0 100644
(file)
--- 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;