g_output_stream_splice: deal with overflow
authorDan Winship <danw@gnome.org>
Tue, 7 Jun 2011 21:15:17 +0000 (17:15 -0400)
committerDan Winship <danw@gnome.org>
Wed, 6 Jul 2011 12:39:38 +0000 (08:39 -0400)
commit37ab5ced317342137c60c90feab26e1ac69b6285
tree8fad29949aabdf245e266769e7034838642dc3eb
parent3b4a42d631b987714c1062c0c879da30fd40c4c7
g_output_stream_splice: deal with overflow

On 32-bit machines in particular, bytes_written may overflow a gssize.
Notice when that happens and just return G_MAXSSIZE instead.

https://bugzilla.gnome.org/show_bug.cgi?id=649246
gio/goutputstream.c