hi,
As per http://www.opengroup.org/onlinepubs/009695399/functions/strchr.html strchr method should consider '\0' as part of the string, which means, strchr should return '\0' character position when it is passed as the character to look for. I believe, grub_strchr is intended to mimic standard strchr semantics, but its implementation doesn't confrom the above requirement. Same goes for grub_strrchr function too. Attached is the patch to fix both of these. thanks, -- bvk-chaitanya
fix-strchar.patch
Description: Binary data
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel