Message ID | 874mxrl0hz.fsf@linaro.org |
---|---|
State | New |
Headers | show |
diff --git a/hw/core/loader.c b/hw/core/loader.c index e773aab..83136e8 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.c @@ -599,8 +599,8 @@ int load_image_gzipped(const char *filename, hwaddr addr, uint64_t max_sz) /* Is it a gzip-compressed file? */ if (len < 2 || - compressed_data[0] != '\x1f' || - compressed_data[1] != '\x8b') { + compressed_data[0] != 0x1f || + compressed_data[1] != 0x8b ) { goto out; }