projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix return value.
[pspp]
/
lib
/
strcasestr.c
diff --git
a/lib/strcasestr.c
b/lib/strcasestr.c
index de4cf45fa5902b7178a79c87d778390dc3cd273c..5a0fc426ec001c69275a39780505c2350c71d2e0 100644
(file)
--- a/
lib/strcasestr.c
+++ b/
lib/strcasestr.c
@@
-88,7
+88,7
@@
strcasestr (const char *haystack, const char *needle)
{
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;