We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3647697 + 2e6c670 commit 20bf416Copy full SHA for 20bf416
1 file changed
src/wolfscp.c
@@ -1454,13 +1454,13 @@ int ReceiveScpConfirmation(WOLFSSH* ssh)
1454
{
1455
int ret = WS_SUCCESS;
1456
int msgSz;
1457
- byte msg[DEFAULT_SCP_MSG_SZ];
+ byte msg[DEFAULT_SCP_MSG_SZ + 1];
1458
1459
if (ssh == NULL)
1460
return WS_BAD_ARGUMENT;
1461
1462
WMEMSET(msg, 0, sizeof(msg));
1463
- msgSz = wolfSSH_stream_read(ssh, msg, sizeof(msg));
+ msgSz = wolfSSH_stream_read(ssh, msg, DEFAULT_SCP_MSG_SZ);
1464
1465
if (msgSz < 0) {
1466
ret = msgSz;
0 commit comments