changeset 3092:1e39f795348c

gio: make sure we return the number of bytes we pulled off the getc() stack. (This makes wavpack happy, but not libid3tag.)
author William Pitcock <nenolod@atheme.org>
date Thu, 30 Apr 2009 07:02:04 -0500
parents 2bd8895c9fe0
children f99d13f5f351
files src/gio/gio.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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