Commit c1e37b21 authored by Baptiste Daroussin's avatar Baptiste Daroussin
Browse files

Fix build with gcc

parent 70c7062a
......@@ -163,7 +163,7 @@ ssh_read(void *data, char *buf, int len)
* the cached data into the supplied buffer before trying to
* read from the socket again.
*/
total = (repo->sshio.cache.len < (size_t)len) ? repo->sshio.cache.len : len;
total = (repo->sshio.cache.len < (size_t)len) ? repo->sshio.cache.len : (size_t)len;
memcpy(buf, repo->sshio.cache.buf, total);
repo->sshio.cache.len -= total;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment