Verified Commit a149bf2f authored by Jan Alexander Steffens's avatar Jan Alexander Steffens
Browse files

giochannel: Fix length_size bounds check

The inverted condition is an obvious error introduced by ecdf9140.

Fixes #2323
parent fa248f7f
......@@ -899,7 +899,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