Mercurial > audlegacy-plugins
changeset 3105:1d42b759a2a9
gio: getc() would infinite loop in a situation
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Thu, 30 Apr 2009 12:27:14 -0500 |
parents | 2541e02c077e |
children | a0628e5f3074 |
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 11:10:58 2009 -0500 +++ b/src/gio/gio.c Thu Apr 30 12:27:14 2009 -0500 @@ -171,7 +171,7 @@ handle->stream_stack = g_slist_delete_link(handle->stream_stack, handle->stream_stack); return buf; } - else if (g_input_stream_read(G_INPUT_STREAM(handle->istream), &buf, 1, NULL, NULL) == -1) + else if (g_input_stream_read(G_INPUT_STREAM(handle->istream), &buf, 1, NULL, NULL) != 1) return EOF; return buf;