summaryrefslogtreecommitdiffstats
path: root/common/filetype.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-01-22 15:40:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-01-22 22:03:44 +0100
commit03939c0dfbf27d99e81d85e1bc0340fbee083d74 (patch)
tree688a6dd44bfb866610cbd27e68d1b3ba4118cd68 /common/filetype.c
parentd40e6e14769aed5e0d024752037d5b42a71f6063 (diff)
downloadbarebox-03939c0dfbf27d99e81d85e1bc0340fbee083d74.tar.gz
filetype: add is_barebox_mips_head support
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/filetype.c')
-rw-r--r--common/filetype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/filetype.c b/common/filetype.c
index 5941ad2..22fc621 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)