aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-01 21:06:29 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2021-04-01 21:33:47 +0300
commit81beb04105b5587a9f5cf03c3954cca77484daf3 (patch)
treeb1aa5a7d367ac283b5ab88c738740b08178deef7 /src/examples
parent93291187f4da4d0041b278a7638e69e8ecbadafc (diff)
downloadlibmicrohttpd-81beb04105b5587a9f5cf03c3954cca77484daf3.tar.gz
libmicrohttpd-81beb04105b5587a9f5cf03c3954cca77484daf3.zip
websocket_threaded_example: muted compiler warning
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/websocket_threaded_example.c2
1 files changed, 1 insertions, 1 deletions
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)
492 return MHD_NO; 492 return MHD_NO;
493 } 493 }
494 strncpy (str, key, (WS_KEY_LEN + 1)); 494 strncpy (str, key, (WS_KEY_LEN + 1));
495 strncat (str, WS_GUID, WS_GUID_LEN); 495 strncpy (str + WS_KEY_LEN, WS_GUID, WS_GUID_LEN + 1);
496 SHA1Reset (&ctx); 496 SHA1Reset (&ctx);
497 SHA1Input (&ctx, (const unsigned char *) str, WS_KEY_GUID_LEN); 497 SHA1Input (&ctx, (const unsigned char *) str, WS_KEY_GUID_LEN);
498 SHA1Result (&ctx, hash); 498 SHA1Result (&ctx, hash);