Commit d4b6e92f authored by Mohammed Sadiq's avatar Mohammed Sadiq

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

gtk_entry_buffer_insert_text expects a null-terminated string.

This was found when testing with asan.
parent 7481e022
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment