diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-09-08 08:41:17 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-09-08 08:41:17 +0200 |
commit | 43c5a7cb5278a1cba7960bda8876c7182cdca9b5 (patch) | |
tree | 82fa4719b88132934be108d84c760789b24fa930 /include | |
parent | f16881ead1b69b5ca384892887ec505e8b4f5873 (diff) | |
parent | 62cfa303d76c92403645c68081b285aa5a8c6a98 (diff) | |
download | barebox-43c5a7cb5278a1cba7960bda8876c7182cdca9b5.tar.gz barebox-43c5a7cb5278a1cba7960bda8876c7182cdca9b5.tar.xz |
Merge branch 'for-next/mips'
Diffstat (limited to 'include')
-rw-r--r-- | include/filetype.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/filetype.h b/include/filetype.h index 709c1869f7..c84905d782 100644 --- a/include/filetype.h +++ b/include/filetype.h @@ -77,7 +77,7 @@ static inline int is_barebox_arm_head(const char *head) #ifdef CONFIG_MIPS static inline int is_barebox_mips_head(const char *head) { - return !strcmp(head + MIPS_HEAD_MAGICWORD_OFFSET, "barebox"); + return !strncmp(head + MIPS_HEAD_MAGICWORD_OFFSET, "barebox", 7); } #else static inline int is_barebox_mips_head(const char *head) |