diff options
Diffstat (limited to 'src/fe-gtk')
-rw-r--r-- | src/fe-gtk/maingui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c index fb225f47..edc47fce 100644 --- a/src/fe-gtk/maingui.c +++ b/src/fe-gtk/maingui.c @@ -2233,7 +2233,7 @@ static void mg_word_clicked (GtkWidget *xtext, char *word, GdkEventButton *even) { session *sess = current_sess; - int word_type, start, end; + int word_type = 0, start, end; char *tmp; if (word) @@ -2256,7 +2256,8 @@ mg_word_clicked (GtkWidget *xtext, char *word, GdkEventButton *even) { case WORD_URL: case WORD_HOST: - fe_open_url (word); + word[end] = 0; + fe_open_url (word + start); } } return; |