gnunet-svn
[Top][All Lists]
Advanced

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

[libmicrohttpd] branch master updated: Fixed analyzer warning


From: gnunet
Subject: [libmicrohttpd] branch master updated: Fixed analyzer warning
Date: Sun, 27 Dec 2020 18:11:37 +0100

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

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 2da6d2d8 Fixed analyzer warning
2da6d2d8 is described below

commit 2da6d2d8002370a3597f3080350920c8c26b85c3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Dec 27 20:10:32 2020 +0300

    Fixed analyzer warning
---
 src/examples/websocket_threaded_example.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/examples/websocket_threaded_example.c 
b/src/examples/websocket_threaded_example.c
index 4c767f0a..b508198d 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -491,8 +491,8 @@ ws_get_accept_value (const char *key, char **val)
   {
     return MHD_NO;
   }
-  strncpy (str, key, (WS_KEY_LEN + WS_GUID_LEN + 1));
-  strncat (str, WS_GUID, (WS_GUID_LEN + 1));
+  strncpy (str, key, (WS_KEY_LEN + 1));
+  strncat (str, WS_GUID, WS_GUID_LEN);
   SHA1Reset (&ctx);
   SHA1Input (&ctx, (const unsigned char *) str, WS_KEY_GUID_LEN);
   SHA1Result (&ctx, hash);

-- 
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]