[Zodb-checkins] CVS: Zope3/src/zodb/btrees - _fsBTree.c:1.3

Jeremy Hylton jeremy@zope.com
Fri, 4 Apr 2003 16:41:05 -0500


Update of /cvs-repository/Zope3/src/zodb/btrees
In directory cvs.zope.org:/tmp/cvs-serv12298

Modified Files:
	_fsBTree.c 
Log Message:
Shouldn't user strcmp() to compare binary strings.

XXX Not sure where this macro is used or what kind of failures this
bug caused.


=== Zope3/src/zodb/btrees/_fsBTree.c 1.2 => 1.3 ===
--- Zope3/src/zodb/btrees/_fsBTree.c:1.2	Wed Dec 25 09:12:16 2002
+++ Zope3/src/zodb/btrees/_fsBTree.c	Fri Apr  4 16:41:05 2003
@@ -41,7 +41,7 @@
 #define VALUEMACROS_H "$Id$\n"
 #define VALUE_TYPE char6
 #undef VALUE_TYPE_IS_PYOBJECT
-#define TEST_VALUE(K, T) strncmp(K,T,6)
+#define TEST_VALUE(K, T) memcmp(K,T,6)
 #define DECREF_VALUE(k)
 #define INCREF_VALUE(k)
 #define COPY_VALUE(V, E) (memcpy(V, E, 6))