# HG changeset patch # User William Pitcock # Date 1241092227 18000 # Node ID 2bd8895c9fe05e568c3956a3f20f5a466672104e # Parent 528e08654016a0cd0d071672d8a232f3826bd622 gio: if we ungetc(), then our position moves backwards by the number of ungetc()'d bytes. diff -r 528e08654016 -r 2bd8895c9fe0 src/gio/gio.c --- a/src/gio/gio.c Thu Apr 30 06:42:30 2009 -0500 +++ b/src/gio/gio.c Thu Apr 30 06:50:27 2009 -0500 @@ -243,7 +243,7 @@ handle = (VFSGIOHandle *) file->handle; - return (glong) g_seekable_tell(handle->seekable); + return (glong) (g_seekable_tell(handle->seekable) - g_slist_length(handle->stream_stack)); } gboolean