OSSP CVS Repository

ossp - Difference in ossp-pkg/act/act_mem.c versions 1.5 and 1.6
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/act/act_mem.c 1.5 -> 1.6

--- act_mem.c    2000/08/18 15:35:57     1.5
+++ act_mem.c    2000/08/18 15:42:15     1.6
@@ -198,10 +198,9 @@
         return (void *)&((const char *)haystack)[haystack_len - 1];
     last_possible = (const char *)haystack + haystack_len - needle_len;
     for (begin = (const char *)haystack; begin <= last_possible; begin++)
-        if (*begin == *((const char *)needle) &&
-            act_mem_cmp(&begin[1], (const char *)needle + 1, needle_len - 1) == 0)
-
-        return (void *)begin;
+        if (   *begin == *((const char *)needle) 
+            && act_mem_cmp(&begin[1], (const char *)needle + 1, needle_len - 1) == 0)
+            return (void *)begin;
     return NULL;
 }
 

CVSTrac 2.0.1