# HG changeset patch # User William Pitcock # Date 1241092924 18000 # Node ID 1e39f795348c51e09dd5f8f8d5c03ef9ef480923 # Parent 2bd8895c9fe05e568c3956a3f20f5a466672104e gio: make sure we return the number of bytes we pulled off the getc() stack. (This makes wavpack happy, but not libid3tag.) diff -r 2bd8895c9fe0 -r 1e39f795348c src/gio/gio.c --- a/src/gio/gio.c Thu Apr 30 06:50:27 2009 -0500 +++ b/src/gio/gio.c Thu Apr 30 07:02:04 2009 -0500 @@ -129,7 +129,7 @@ } } - return g_input_stream_read(G_INPUT_STREAM(handle->istream), (ptr + count), (realsize - count), NULL, NULL); + return (g_input_stream_read(G_INPUT_STREAM(handle->istream), (ptr + count), (realsize - count), NULL, NULL) + count); } size_t