NetBSD/common/lib/libc
khorben 00b617c08a Look for the character to locate before checking for the NUL character
As documented in PR port-i386/49208, this fixes strchr(s, '\0'), as used by
the FAT first-stage bootloader on x86 (bootxx_msdos).
strchr(s, '\0') is otherwise equivalent to strlen(string), which would
probably look nicer in the original file, dosfs.c from libsa.

Confirmed working in qemu and on real hardware.
ok joerg@

XXX pull-up to netbsd-6 and netbsd-7
2014-09-22 20:31:56 +00:00
..
arch Look for the character to locate before checking for the NUL character 2014-09-22 20:31:56 +00:00
atomic Add __sync_val_compare_and_swap_{1,2} aliases for _atomic_cas_{8,16} 2014-09-03 19:30:47 +00:00
cdb Allow kernel code to access constant databases by moving cdbr(3) and the 2013-12-11 01:24:08 +00:00
gen Remove enclosing parens on return. 2014-08-22 17:19:48 +00:00
gmon Remove __P usage. 2012-03-20 16:21:41 +00:00
hash murmurhash2: add an optimised path for the aligned pointer case. 2013-10-26 21:06:38 +00:00
inet Casts and type changes to fix portability issues. 2012-03-09 15:41:16 +00:00
md Remove __P usage. 2012-03-20 16:21:41 +00:00
net Lint seems to prefer that we cast via (void*) and not directly to 2012-03-21 20:02:56 +00:00
quad use explicit cast to pacify lint. 2012-12-07 15:41:02 +00:00
stdlib update for the new function signatures of initstate/srandom 2014-06-12 20:59:46 +00:00
string lua: updated from 5.1 to 5.3 work3 2014-07-19 18:38:33 +00:00
sys Casts and type changes to fix portability issues. 2012-03-09 15:41:16 +00:00
Makefile.inc MKCOMPAT fixes for when compat MACHINE_CPU != normal MACHINE_CPU 2014-08-10 23:25:49 +00:00