OSSP CVS Repository

ossp - Check-in [143]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 143
Date: 2000-Aug-17 17:42:15 (local)
2000-Aug-17 15:42:15 (UTC)
User:rse
Branch:
Comment: *** empty log message ***
Tickets:
Inspections:
Files:
ossp-pkg/act/act_mem.c      1.5 -> 1.6     3 inserted, 4 deleted

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