From a8193b168a642f77132cfe15df68f47cdb529097 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 8 Aug 2001 16:39:27 +0000 Subject: [PATCH] Never insert NUL characters to entry line (Ctrl-Space) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1723 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-entry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fe-text/gui-entry.c b/src/fe-text/gui-entry.c index 10d13ffb..0cdfa719 100644 --- a/src/fe-text/gui-entry.c +++ b/src/fe-text/gui-entry.c @@ -141,6 +141,8 @@ void gui_entry_insert_text(const char *str) void gui_entry_insert_char(char chr) { + if (chr == 0) return; /* never insert NUL characters */ + g_string_insert_c(entry, pos, chr); pos++;