Skip to content
Permalink
Browse files

#360

  • Loading branch information...
Your Name
Your Name committed Apr 24, 2019
1 parent 1cdbe63 commit ce565ce66d75ae87c2f4fd0b4ac0d81fa2059b77
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/transport.c
@@ -565,7 +565,7 @@ int _libssh2_transport_read(LIBSSH2_SESSION * session)
copy them as-is to the target buffer */
if(numbytes > 0) {

if(numbytes <= (int)(total_num - (p->wptr - p->payload))) {
if((size_t)numbytes <= (total_num - (p->wptr - p->payload))) {
memcpy(p->wptr, &p->buf[p->readidx], numbytes);
}
else {

0 comments on commit ce565ce

Please sign in to comment.
You can’t perform that action at this time.