projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ca6f7
)
Bug 604457 - gutf8inputstream.c: increasing unknown size pointer
author
Paolo Borelli
<pborelli@gnome.org>
Thu, 31 Dec 2009 11:42:41 +0000
(12:42 +0100)
committer
Paolo Borelli
<pborelli@gnome.org>
Thu, 31 Dec 2009 11:42:41 +0000
(12:42 +0100)
gio/gutf8inputstream.c
patch
|
blob
|
history
diff --git
a/gio/gutf8inputstream.c
b/gio/gutf8inputstream.c
index 2f0dd13444c4194a6c38bf3375f2ab1d716d7cc0..94d57a56b8a59b62cde7c57c368d6e301e3c3ab1 100644
(file)
--- 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)