[glib] Bug 604457 - gutf8inputstream.c: increasing unknown size pointer



commit 32f79f55ef287bf505ff434f13d79d89f3630bb2
Author: Paolo Borelli <pborelli gnome org>
Date:   Thu Dec 31 12:42:41 2009 +0100

    Bug 604457 -  gutf8inputstream.c: increasing unknown size pointer

 gio/gutf8inputstream.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gutf8inputstream.c b/gio/gutf8inputstream.c
index 2f0dd13..94d57a5 100644
--- a/gio/gutf8inputstream.c
+++ b/gio/gutf8inputstream.c
@@ -271,7 +271,7 @@ g_utf8_input_stream_read (GInputStream *stream,
   base_stream = g_filter_input_stream_get_base_stream (G_FILTER_INPUT_STREAM (stream));
 
   nread = g_input_stream_read (base_stream,
-                               buffer + oldread,
+                               (char *)buffer + oldread,
                                count - oldread,
                                cancellable,
                                error);
@@ -289,7 +289,7 @@ g_utf8_input_stream_read (GInputStream *stream,
     goto error;
 
   /* validate */
-  valid = g_utf8_validate (buffer + offset, nread - offset, &end);
+  valid = g_utf8_validate ((char *)buffer + offset, nread - offset, &end);
   nvalid = end - (char *)buffer;
 
   if (valid)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]