From 1c62702758b84db05eceb9965d79a92d4eeed162 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Sun, 14 Aug 2011 23:10:45 +0200 Subject: [PATCH] core: fix crash when looking at context in chat area for focus --- src/gui/gui-window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/gui-window.c b/src/gui/gui-window.c index 1daaf5699..bf0f2cde8 100644 --- a/src/gui/gui-window.c +++ b/src/gui/gui-window.c @@ -221,7 +221,7 @@ gui_window_get_context_at_xy (struct t_gui_window *window, { last_space = NULL; word_start = (*line)->data->message; - while (word_start < ptr_data) + while (word_start && (word_start < ptr_data)) { word_start = (char *)gui_chat_string_next_char (NULL, (unsigned char *)word_start,