Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix build with gcc
Baptiste Daroussin committed 12 years ago
commit 7885d5fe8973e916df3ab0511b133b7f321c821a
parent 6b71cee
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;