Fix off by one error in SCP command processing.

pull/197/head
John Safranek 2019-09-13 09:52:05 -07:00
parent 915c1bced9
commit 1ad4ea3232
1 changed files with 1 additions and 1 deletions

View File

@ -1259,7 +1259,7 @@ int ReceiveScpMessage(WOLFSSH* ssh)
return sz;
/* null-terminate request, replace newline */
buf[sz-1] = '\0';
buf[sz] = '\0';
switch (buf[0]) {
case 'C':