1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

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
This commit is contained in:
Timo Sirainen 2001-08-08 16:39:27 +00:00 committed by cras
parent 59a1a4d649
commit a8193b168a

View File

@ -141,6 +141,8 @@ void gui_entry_insert_text(const char *str)
void gui_entry_insert_char(char chr) void gui_entry_insert_char(char chr)
{ {
if (chr == 0) return; /* never insert NUL characters */
g_string_insert_c(entry, pos, chr); g_string_insert_c(entry, pos, chr);
pos++; pos++;