gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] 02/10: digestauth: fixed compiler warning


From: gnunet
Subject: [libmicrohttpd] 02/10: digestauth: fixed compiler warning
Date: Thu, 01 Apr 2021 20:38:58 +0200

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

commit 876be0435307bf0904977c08fc9b8796ec28ae49
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Apr 1 20:07:23 2021 +0300

    digestauth: fixed compiler warning
---
 src/microhttpd/digestauth.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 3b6d94f7..6033c166 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -684,7 +684,6 @@ calculate_nonce (uint32_t nonce_time,
   unsigned char timestamp[TIMESTAMP_BIN_SIZE];
   const unsigned int digest_size = da->digest_size;
   unsigned char tmpnonce[VLA_ARRAY_LEN_DIGEST (digest_size)];
-  char timestamphex[TIMESTAMP_BIN_SIZE * 2 + 1];
 
   VLA_CHECK_LEN_DIGEST (digest_size);
   da->init (da->ctx);
@@ -727,10 +726,7 @@ calculate_nonce (uint32_t nonce_time,
           nonce);
   cvthex (timestamp,
           sizeof (timestamp),
-          timestamphex);
-  strncat (nonce,
-           timestamphex,
-           8);
+          nonce + digest_size * 2);
 }
 
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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