Commit f8273b9a authored by Jan Alexander Steffens's avatar Jan Alexander Steffens Committed by Simon McVittie
Browse files

giochannel: Fix length_size bounds check

The inverted condition is an obvious error introduced by ecdf9140.

Fixes #2323

(cherry picked from commit a149bf2f)
parent d5ec4f36
......@@ -900,7 +900,7 @@ g_io_channel_set_line_term (GIOChannel *channel,
{
/* FIXME: We’re constrained by line_term_len being a guint here */
gsize length_size = strlen (line_term);
g_return_if_fail (length_size > G_MAXUINT);
g_return_if_fail (length_size <= G_MAXUINT);
length_unsigned = (guint) length_size;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment