extlinux: remove wrong use of strstr() syslinux-4.05-pre4
authorPaulo Alcantara <pcacjr@gmail.com>
Tue, 5 Jul 2011 22:12:24 +0000 (22:12 +0000)
committerPaulo Alcantara <pcacjr@gmail.com>
Tue, 5 Jul 2011 22:12:24 +0000 (22:12 +0000)
commitc2d4f9b611c43697e889d991d8a4edea92ef2d76
tree22f8431575c1bccb2bd0ee82c40964da752e026d
parent4d086951a915d3e6faabbff0bd5214444a405658
extlinux: remove wrong use of strstr()

strstr() is only used for zero-terminated strings, so OEM Name is not
guaranteed to be zero-terminated. Instead, use fat_check_sb_fields() to
sanity check FAT superblock.

Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
extlinux/main.c