This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] tktable


2002-06-07  Martin M. Hunt  <hunt@redhat.com>

	* src/tkTableTag.c (Table_TagCmd): Don't decrement past
	beginning of array.

-- 
Martin Hunt
GDB Engineer
Red Hat, Inc.
Index: src/tkTableTag.c
===================================================================
RCS file: /cvs/src/src/libgui/src/tkTableTag.c,v
retrieving revision 1.3
diff -u -u -r1.3 tkTableTag.c
--- src/tkTableTag.c	8 Sep 2001 22:34:48 -0000	1.3
+++ src/tkTableTag.c	7 Jun 2002 08:58:02 -0000
@@ -1233,7 +1233,7 @@
 		/*
 		 * Move tag up in priority.
 		 */
-		for (i = tagPrio; i > value; i--) {
+		for (i = tagPrio; i && i > value; i--) {
 		    tablePtr->tagPrioNames[i] = tablePtr->tagPrioNames[i-1];
 		    tablePtr->tagPrios[i]     = tablePtr->tagPrios[i-1];
 		}

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]