* [patch] tktable
@ 2002-06-07 2:01 Martin M. Hunt
0 siblings, 0 replies; only message in thread
From: Martin M. Hunt @ 2002-06-07 2:01 UTC (permalink / raw)
To: insight
[-- Attachment #1: Type: text/plain, Size: 168 bytes --]
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.
[-- Attachment #2: p2 --]
[-- Type: text/x-diff, Size: 571 bytes --]
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];
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-07 9:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-07 2:01 [patch] tktable Martin M. Hunt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).