gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnunet] 01/02: return value of GNUNET_strlcpy can be used


From: gnunet
Subject: [GNUnet-SVN] [gnunet] 01/02: return value of GNUNET_strlcpy can be used
Date: Thu, 27 Jun 2019 13:00:31 +0200

This is an automated email from the git hooks/post-receive script.

lurchi pushed a commit to branch master
in repository gnunet.

commit 40a111b93ce2d38b875c2eda3e23d6b89a256599
Author: lurchi <address@hidden>
AuthorDate: Thu Jun 27 12:21:49 2019 +0200

    return value of GNUNET_strlcpy can be used
---
 src/util/gnunet-ecc.c | 3 +--
 1 file changed, 1 insertion(+), 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;
 

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]