public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+extra/files: gtk+extra-2.1.2-itementry-crash.patch
@ 2011-02-02 19:00 99% Pacho Ramos (pacho)
  0 siblings, 0 replies; 1+ results
From: Pacho Ramos (pacho) @ 2011-02-02 19:00 UTC (permalink / raw
  To: gentoo-commits

pacho       11/02/02 19:00:19

  Added:                gtk+extra-2.1.2-itementry-crash.patch
  Log:
  Fix crashes with dev-embedded/gpsim (bug #353489 by Robert Pearce).
  
  (Portage version: 2.1.9.35/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-libs/gtk+extra/files/gtk+extra-2.1.2-itementry-crash.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+extra/files/gtk+extra-2.1.2-itementry-crash.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-libs/gtk+extra/files/gtk+extra-2.1.2-itementry-crash.patch?rev=1.1&content-type=text/plain

Index: gtk+extra-2.1.2-itementry-crash.patch
===================================================================
--- gtkextra/gtkitementry.c    	2011-02-02 13:36:17.402632207 +1100
+++ gtkextra/gtkitementry.c	2011-02-02 17:20:26.305418034 +1100
@@ -778,11 +778,12 @@
   memcpy (entry->text + index, new_text, new_text_length);
 #endif //GTK_TYPE_ENTRY_BUFFER
 
-  ientry->item_n_bytes += new_text_length;
-  entry->text_length += n_chars;
+  if (new_text_length + *position > ientry->item_n_bytes)
+      ientry->item_n_bytes = new_text_length + *position;
 
   /* NUL terminate for safety and convenience */
   entry->text[ientry->item_n_bytes] = '\0';
+  entry->text_length = strlen(entry->text);
   
   if (entry->current_pos > *position)
     entry->current_pos += n_chars;






^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2011-02-02 19:00 99% [gentoo-commits] gentoo-x86 commit in x11-libs/gtk+extra/files: gtk+extra-2.1.2-itementry-crash.patch Pacho Ramos (pacho)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox