aboutsummaryrefslogtreecommitdiffstats
path: root/subversion/libsvn_subr/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/libsvn_subr/stream.c')
-rw-r--r--subversion/libsvn_subr/stream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/subversion/libsvn_subr/stream.c b/subversion/libsvn_subr/stream.c
index 609d7af72c94..be10fc7cff5d 100644
--- a/subversion/libsvn_subr/stream.c
+++ b/subversion/libsvn_subr/stream.c
@@ -922,7 +922,7 @@ readline_apr_lf(apr_file_t *file,
}
/* Otherwise, prepare to read the next chunk. */
- svn_stringbuf_ensure(buf, buf->blocksize + SVN__LINE_CHUNK_SIZE);
+ svn_stringbuf_ensure(buf, buf->len + SVN__LINE_CHUNK_SIZE);
}
}
@@ -982,7 +982,7 @@ readline_apr_generic(apr_file_t *file,
}
/* Prepare to read the next chunk. */
- svn_stringbuf_ensure(buf, buf->blocksize + SVN__LINE_CHUNK_SIZE);
+ svn_stringbuf_ensure(buf, buf->len + SVN__LINE_CHUNK_SIZE);
}
}
@@ -1468,10 +1468,10 @@ seek_handler_checksum(void *baton, const svn_stream_mark_t *mark)
else
{
if (btn->read_ctx)
- svn_checksum_ctx_reset(btn->read_ctx);
+ SVN_ERR(svn_checksum_ctx_reset(btn->read_ctx));
if (btn->write_ctx)
- svn_checksum_ctx_reset(btn->write_ctx);
+ SVN_ERR(svn_checksum_ctx_reset(btn->write_ctx));
SVN_ERR(svn_stream_reset(btn->proxy));
}