NetBSD/common
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
..
dist/zlib mark variables as used 2013-11-07 17:26:13 +00:00
include Migrate one last leftover bit (used only by the kernel now) to 2012-02-05 14:19:02 +00:00
lib Look for the character to locate before checking for the NUL character 2014-09-22 20:31:56 +00:00