From 9858ffff69ce2e3df353b2c1e65a987c58f32fac Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Mon, 29 Jun 2009 11:22:55 +0300 Subject: cache: new applet (ref #49) Administrative tool to download or delete files to/from the cache. --- src/io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/io.c') diff --git a/src/io.c b/src/io.c index 22a69e5..722bccb 100644 --- a/src/io.c +++ b/src/io.c @@ -331,7 +331,7 @@ static size_t tee_read(void *stream, void **ptr) { struct apk_tee_bstream *tbs = container_of(stream, struct apk_tee_bstream, bs); - size_t size; + ssize_t size; size = tbs->inner_bs->read(tbs->inner_bs, ptr); if (size >= 0) @@ -373,6 +373,7 @@ struct apk_bstream *apk_bstream_tee(struct apk_bstream *from, const char *to) }; tbs->inner_bs = from; tbs->fd = fd; + tbs->size = 0; return &tbs->bs; } -- cgit v1.2.3-60-g2f50