diff options
author | Timo Sirainen <cras@irssi.org> | 2001-08-08 16:39:27 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-08-08 16:39:27 +0000 |
commit | a8193b168a642f77132cfe15df68f47cdb529097 (patch) | |
tree | 554f92fc798b8b4d4d44bd690718571a2b86b606 /src/fe-text | |
parent | 59a1a4d649bfc4e1cce327c473a08560c29f503d (diff) | |
download | irssi-a8193b168a642f77132cfe15df68f47cdb529097.zip |
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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/gui-entry.c | 2 |
1 files changed, 2 insertions, 0 deletions
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++; |