1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

scp: fix typo in comments [ci skip]

Follow-up to 0a500b3554
This commit is contained in:
Viktor Szakats
2023-04-19 21:55:30 +00:00
parent 8d10b21731
commit 9a54f212a6

View File

@@ -305,7 +305,7 @@ scp_recv(LIBSSH2_SESSION * session, const char *path, libssh2_struct_stat * sb)
path_len = strlen(path);
/* no NUL-termination neeed, so memcpy will do */
/* no NUL-termination needed, so memcpy will do */
memcpy(&session->scpRecv_command[cmd_len], path, path_len);
cmd_len += path_len;
}
@@ -877,7 +877,7 @@ scp_send(LIBSSH2_SESSION * session, const char *path, int mode,
path_len = strlen(path);
/* no NUL-termination neeed, so memcpy will do */
/* no NUL-termination needed, so memcpy will do */
memcpy(&session->scpSend_command[cmd_len], path, path_len);
cmd_len += path_len;