mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
fix for build with --enable-all and gcc-9 on Linux
This commit is contained in:
@ -2966,12 +2966,12 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
|
|
||||||
if (sendGET) {
|
if (sendGET) {
|
||||||
printf("SSL connect ok, sending GET...\n");
|
printf("SSL connect ok, sending GET...\n");
|
||||||
msgSz = 28;
|
msgSz = sizeof("GET /index.html HTTP/1.0\r\n\r\n");
|
||||||
strncpy(msg, "GET /index.html HTTP/1.0\r\n\r\n", msgSz);
|
XSTRNCPY(msg, "GET /index.html HTTP/1.0\r\n\r\n", msgSz);
|
||||||
msg[msgSz] = '\0';
|
msg[msgSz] = '\0';
|
||||||
|
|
||||||
resumeSz = msgSz;
|
resumeSz = msgSz;
|
||||||
strncpy(resumeMsg, "GET /index.html HTTP/1.0\r\n\r\n", resumeSz);
|
XSTRNCPY(resumeMsg, "GET /index.html HTTP/1.0\r\n\r\n", resumeSz);
|
||||||
resumeMsg[resumeSz] = '\0';
|
resumeMsg[resumeSz] = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user