d3a42269b7
common/lib/libc/arch/i386/string/small/strchr.S: revision 1.3 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 |
||
---|---|---|
.. | ||
dist/zlib | ||
include | ||
lib |