Slightly optimize svn_stringbuf_from_stream() to avoid allocating twice
more memory and unnecessary memcpy() when LEN_HINT is equal to final stringbuf
length.

* subversion/libsvn_subr/stream.c
  (svn_stringbuf_from_stream): Always preallocate LEN_HINT + MIN_READ_SIZE
   bytes to be able perform final read without stringbuf reallocation.  


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1707196 13f79535-47bb-0310-9956-ffa450edef68
1 file changed