Merge branch 'wip/sadiq/fixes' into 'master'

new-call-box: Use nul-terminated string to set as buffer text

See merge request Librem5/calls!42
This commit is contained in:
Bob Ham 2019-01-31 15:50:08 +00:00
commit ee126b3660
1 changed files with 2 additions and 1 deletions

View File

@ -65,8 +65,9 @@ dial_pad_symbol_clicked_cb (CallsNewCallBox *self,
{
GtkEntryBuffer *buf = gtk_entry_get_buffer (GTK_ENTRY (self->number_entry));
guint len = gtk_entry_buffer_get_length (buf);
const gchar str[] = {symbol, '\0'};
gtk_entry_buffer_insert_text (buf, len, &symbol, 1);
gtk_entry_buffer_insert_text (buf, len, str, 1);
}