Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix build with gcc
Baptiste Daroussin committed 12 years ago
commit 7885d5fe8973e916df3ab0511b133b7f321c821a
parent 6b71cee9660a1d56288c2a12d3633730e6d76687
1 file changed +1 -1
modified libpkg/fetch.c
@@ -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;