From 4b95b05db487c202cab30b4e038956521a32ae72 Mon Sep 17 00:00:00 2001 From: des Date: Mon, 23 Jan 2012 09:23:07 +0000 Subject: Fix two nits in previous commit pointed out by pjd@. MFC after: 3 weeks --- lib/libfetch/common.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/libfetch') diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index 5dfdcc4..e6f67c3 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) { -- cgit v1.1