Change to memcpy

This commit is contained in:
kaleb-himes 2020-06-03 17:10:07 -06:00
parent 8c3f7a77ca
commit 923fc30043
2 changed files with 6 additions and 5 deletions

View File

@ -3077,15 +3077,16 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
#endif /* HAVE_SECURE_RENEGOTIATION */ #endif /* HAVE_SECURE_RENEGOTIATION */
if (sendGET) { if (sendGET) {
printf("SSL connect ok, sending GET...\n");
char msgGet[GETMSGSZ] = "GET /index.html HTTP/1.0\r\n\r\n"; char msgGet[GETMSGSZ] = "GET /index.html HTTP/1.0\r\n\r\n";
printf("SSL connect ok, sending GET...\n");
XMEMSET(msg, 0, MSG32); XMEMSET(msg, 0, MSG32);
XMEMSET(resumeMsg, 0, MSG32); XMEMSET(resumeMsg, 0, MSG32);
msgSz = GETMSGSZ-1; msgSz = GETMSGSZ-1;
XSTRNCPY(msg, msgGet, msgSz); XMEMCPY(msg, msgGet, msgSz);
resumeSz = msgSz; resumeSz = msgSz;
XSTRNCPY(resumeMsg, msgGet, resumeSz); XMEMCPY(resumeMsg, msgGet, resumeSz);
} }
/* allow some time for exporting the session */ /* allow some time for exporting the session */

View File

@ -2404,11 +2404,11 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
/* Write data */ /* Write data */
if (!useWebServerMsg) { if (!useWebServerMsg) {
write_msg = msg; write_msg = msg;
write_msg_sz = XSTRLEN(msg); write_msg_sz = (int) XSTRLEN(msg);
} }
else { else {
write_msg = webServerMsg; write_msg = webServerMsg;
write_msg_sz = XSTRLEN(webServerMsg); write_msg_sz = (int) XSTRLEN(webServerMsg);
} }
ServerWrite(ssl, write_msg, write_msg_sz); ServerWrite(ssl, write_msg, write_msg_sz);