Commit 150ebcfa 150ebcfaf5ded43ff71313ce2acff79bf99c1487 by Sergey Poznyakoff

Use full buffering for streamrefs.

* libmailutils/stream/streamref.c (mu_streamref_create_abridged): Set
full buffering by default.
1 parent 1d5c1ef0
......@@ -266,7 +266,7 @@ mu_streamref_create_abridged (mu_stream_t *pref, mu_stream_t str,
mu_off_t off;
int flags;
struct _mu_streamref *sp;
rc = mu_stream_seek (str, 0, MU_SEEK_SET, &off);
if (rc)
return rc;
......@@ -302,6 +302,9 @@ mu_streamref_create_abridged (mu_stream_t *pref, mu_stream_t str,
off = start;
sp->offset = off;
*pref = (mu_stream_t) sp;
mu_stream_set_buffer (*pref, mu_buffer_full, 0);
return 0;
}
......