From 03939c0dfbf27d99e81d85e1bc0340fbee083d74 Mon Sep 17 00:00:00 2001 From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 22 Jan 2013 15:40:36 +0100 Subject: filetype: add is_barebox_mips_head support Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Sascha Hauer --- common/filetype.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/filetype.c') diff --git a/common/filetype.c b/common/filetype.c index 5941ad23a9..22fc621a14 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -145,7 +145,7 @@ enum filetype file_detect_type(const void *_buf, size_t bufsize) return filetype_aimage; if (buf64[0] == le64_to_cpu(0x0a1a0a0d474e5089ull)) return filetype_png; - if (strncmp(buf8 + 0x10, "barebox", 7) == 0) + if (is_barebox_mips_head(_buf)) return filetype_mips_barebox; if (bufsize < 64) -- cgit v1.2.3