Fix mistake in truncating length of text to MAX_SIZE. (Found by Padraig

Wed Oct 17 15:17:20 2001  Owen Taylor  <otaylor@redhat.com>

	* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
	in truncating length of text to MAX_SIZE. (Found by
	Padraig O'Briain, #62055)
This commit is contained in:
Owen Taylor 2001-10-17 19:20:15 +00:00 committed by Owen Taylor
parent 5d7d5eedd5
commit 2c281ef63b
8 changed files with 43 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to

View File

@ -1,3 +1,9 @@
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to

View File

@ -1,3 +1,9 @@
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to

View File

@ -1,3 +1,9 @@
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to

View File

@ -1,3 +1,9 @@
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to

View File

@ -1,3 +1,9 @@
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to

View File

@ -1,3 +1,9 @@
Wed Oct 17 15:17:20 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c (gtk_entry_real_insert_text): Fix mistake
in truncating length of text to MAX_SIZE. (Found by
Padraig O'Briain, #62055)
Tue Oct 16 17:04:44 2001 Owen Taylor <otaylor@redhat.com>
* gtk/gtkwidget.c: Rename ACTIVATE_MNEMONIC enum to

View File

@ -1858,7 +1858,7 @@ gtk_entry_real_insert_text (GtkEditable *editable,
else
{
entry->text_size = MAX_SIZE;
new_text_length = entry->text_size - new_text_length - 1;
new_text_length = entry->text_size - entry->n_bytes - 1;
break;
}
}