+2005-08-18 Bruno Haible <bruno@clisp.org>
+
+ * strstr.c (strstr): Fix return value in multibyte case.
+ * strcasestr.c (strcasestr): Likewise.
+
2005-08-17 Jim Meyering <jim@meyering.net>
Make the %s format (seconds since the epoch) work for a negative
{
if (!mbui_avail (rneedle))
/* Found a match. */
- return (char *) haystack;
+ return (char *) mbui_cur_ptr (iter_haystack);
if (!mbui_avail (rhaystack))
/* No match. */
return NULL;
{
if (!mbui_avail (rneedle))
/* Found a match. */
- return (char *) haystack;
+ return (char *) mbui_cur_ptr (iter_haystack);
if (!mbui_avail (rhaystack))
/* No match. */
return NULL;