#include <string.h>
-
-#ifdef KERNEL
-#define NDEBUG
-#endif
#include <debug.h>
/* Copies SIZE bytes from SRC to DST, which must not overlap.
{
size_t i;
- for (i = 0; i < haystack_len - needle_len; i++)
+ for (i = 0; i <= haystack_len - needle_len; i++)
if (!memcmp (haystack + i, needle, needle_len))
return (char *) haystack + i;
}