aboutsummaryrefslogtreecommitdiff
path: root/lib/libfetch
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2012-01-23 09:23:07 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2012-01-23 09:23:07 +0000
commite6e3bcd37638337cd08bc16db296e823462afda9 (patch)
tree2fa23e6d751bff77620d3cdbb5fd156cd0c6d01f /lib/libfetch
parent2ee7b1d4ae6ce4ca6a9bf76ed5dec3d7994f9e52 (diff)
Notes
Diffstat (limited to 'lib/libfetch')
-rw-r--r--lib/libfetch/common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c
index 5dfdcc46377e..e6f67c30a37c 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -416,7 +416,6 @@ fetch_cache_data(conn_t *conn, char *src, size_t nbytes)
if (conn->cache.size < nbytes) {
tmp = realloc(conn->cache.buf, nbytes);
if (tmp == NULL) {
- errno = ENOMEM;
fetch_syserr();
return (-1);
}
@@ -481,7 +480,7 @@ fetch_read(conn_t *conn, char *buf, size_t len)
conn->cache.len -= total;
conn->cache.pos += total;
len -= total;
- buf+= total;
+ buf += total;
}
while (len > 0) {