From a80f816a67673ad57399f30e91fd4a01d4581f54 Mon Sep 17 00:00:00 2001 From: Bob Ham Date: Mon, 8 Jul 2019 10:08:16 +0100 Subject: [PATCH] util: Fix off-by-one in calls_entry_append Append after the last character rather than insert before it. Closes #70 --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 2daabe2..065ae66 100644 --- a/src/util.c +++ b/src/util.c @@ -83,5 +83,5 @@ calls_entry_append (GtkEntry *entry, buf = gtk_entry_get_buffer (entry); len = gtk_entry_buffer_get_length (buf); - gtk_entry_buffer_insert_text (buf, len - 1, str, 1); + gtk_entry_buffer_insert_text (buf, len, str, 1); }