[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 08/10: websocket_threaded_example: muted compiler warnin
From: |
gnunet |
Subject: |
[libmicrohttpd] 08/10: websocket_threaded_example: muted compiler warning |
Date: |
Thu, 01 Apr 2021 20:39:04 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 81beb04105b5587a9f5cf03c3954cca77484daf3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Thu Apr 1 21:06:29 2021 +0300
websocket_threaded_example: muted compiler warning
---
src/examples/websocket_threaded_example.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/examples/websocket_threaded_example.c
b/src/examples/websocket_threaded_example.c
index b508198d..1502501b 100644
--- a/src/examples/websocket_threaded_example.c
+++ b/src/examples/websocket_threaded_example.c
@@ -492,7 +492,7 @@ ws_get_accept_value (const char *key, char **val)
return MHD_NO;
}
strncpy (str, key, (WS_KEY_LEN + 1));
- strncat (str, WS_GUID, WS_GUID_LEN);
+ strncpy (str + WS_KEY_LEN, WS_GUID, WS_GUID_LEN + 1);
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.
- [libmicrohttpd] branch master updated (bf25ee3a -> e3d7574a), gnunet, 2021/04/01
- [libmicrohttpd] 01/10: digestauth: do not use size of buffer as size of digest, gnunet, 2021/04/01
- [libmicrohttpd] 02/10: digestauth: fixed compiler warning, gnunet, 2021/04/01
- [libmicrohttpd] 03/10: connection.c: mute compiler warning, gnunet, 2021/04/01
- [libmicrohttpd] 06/10: testzzuf: test thoroughly if heavy tests are enabled, gnunet, 2021/04/01
- [libmicrohttpd] 04/10: test_get_iovec: fixed compiler warning, gnunet, 2021/04/01
- [libmicrohttpd] 05/10: test_add_conn: muted compiler warning, gnunet, 2021/04/01
- [libmicrohttpd] 09/10: digestauth.c: trust configure detection of variable length arrays, gnunet, 2021/04/01
- [libmicrohttpd] 10/10: ax_have_epoll: speed-up detection, gnunet, 2021/04/01
- [libmicrohttpd] 07/10: configure: assume that systems assert() is functional if available, gnunet, 2021/04/01
- [libmicrohttpd] 08/10: websocket_threaded_example: muted compiler warning,
gnunet <=