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;
}
|
|