summaryrefslogtreecommitdiff
path: root/src/fe-text/gui-entry.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/fe-text/gui-entry.c')
-rw-r--r--src/fe-text/gui-entry.c2
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++;