[Commit] Xft xftglyphs.c,1.24,1.25

Keith Packard commit@keithp.com
Wed, 30 Apr 2003 09:48:13 -0700


Committed by: keithp

Update of /local/src/CVS/Xft
In directory home.keithp.com:/tmp/cvs-serv9817

Modified Files:
	xftglyphs.c 
Log Message:
Walking off the end of the hash table


Index: xftglyphs.c
===================================================================
RCS file: /local/src/CVS/Xft/xftglyphs.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- xftglyphs.c	17 Apr 2003 04:29:24 -0000	1.24
+++ xftglyphs.c	30 Apr 2003 16:48:10 -0000	1.25
@@ -734,7 +734,7 @@
 		offset = 1;
 	}
 	ent = ent + offset;
-	if (ent > font->hash_value)
+	if (ent >= font->hash_value)
 	    ent -= font->hash_value;
     }
     return font->hash_table[ent].glyph;