diff options
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/src/callbacks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 54a5d0ca2..bccc03005 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -2628,7 +2628,7 @@ ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data) signal_user_data_t *ud = (signal_user_data_t*)data; status = g_io_channel_read_line (source, &text, &length, NULL, &gerror); - if (text != NULL) + if (text != NULL && length > 0 && text[length-1] != 0) { GdkWindow *window; gint width, height; |