diff options
author | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2013-01-22 15:40:36 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-22 22:03:44 +0100 |
commit | 03939c0dfbf27d99e81d85e1bc0340fbee083d74 (patch) | |
tree | 688a6dd44bfb866610cbd27e68d1b3ba4118cd68 /common | |
parent | d40e6e14769aed5e0d024752037d5b42a71f6063 (diff) | |
download | barebox-03939c0dfbf27d99e81d85e1bc0340fbee083d74.tar.gz barebox-03939c0dfbf27d99e81d85e1bc0340fbee083d74.tar.xz |
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')
-rw-r--r-- | common/filetype.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |