libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

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

Fixed analyzer warning

Diffstat:
Msrc/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 @@ -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);