From 876be0435307bf0904977c08fc9b8796ec28ae49 Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Thu, 1 Apr 2021 20:07:23 +0300 Subject: 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); } -- cgit v1.2.3