mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
giochannel: Fix an invalid comparison
Since commit 2f9e6e977a
, `count` has been used here incorrectly: after
`count_unsigned` is initialised, `count` should no longer be used as it
might be unhelpfully negative.
Fix this to correctly use `count_unsigned`.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
a937c8ac5a
commit
b2dd6d9053
@ -2267,7 +2267,7 @@ g_io_channel_write_chars (GIOChannel *channel,
|
||||
if (!channel->write_buf)
|
||||
channel->write_buf = g_string_sized_new (channel->buf_size);
|
||||
|
||||
while (wrote_bytes < count)
|
||||
while (wrote_bytes < count_unsigned)
|
||||
{
|
||||
gsize space_in_buf;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user