[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On grub_strchr implementation
From: |
BVK |
Subject: |
On grub_strchr implementation |
Date: |
Mon, 2 Nov 2009 00:24:33 +0530 |
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
- On grub_strchr implementation,
BVK <=