trio upgrade and integration
diff --git a/strio.c b/strio.c
index 3b00e72..bbb2056 100644
--- a/strio.c
+++ b/strio.c
@@ -15,12 +15,9 @@
  *
  ************************************************************************/
 
-/* DV for libxml */
-#include <libxml/xmlversion.h>
-#ifdef WITH_TRIO
-
-/* FIXME
- * StrToLongDouble
+/*
+ * TODO
+ * - StrToLongDouble
  */
  
 static const char rcsid[] = "@(#)$Id$";
@@ -389,9 +386,9 @@
   assert(VALID(find));
   
   size = StrLength(find);
-  if (size >= max)
+  if (size <= max)
     {
-      for (count = 0; count > max - size; count++)
+      for (count = 0; count <= max - size; count++)
 	{
 	  if (StrEqualMax(find, size, &string[count]))
 	    {
@@ -563,6 +560,3 @@
     }
   return i;
 }
-
-/* DV for libxml */
-#endif /* WITH_TRIO */