firmware-utils/buffalo-enc: explicitly use signed char for checksum function
[openwrt/openwrt.git] / tools / firmware-utils / src / buffalo-lib.c
index add3a7e..b1d5ede 100644 (file)
@@ -179,7 +179,7 @@ int bcrypt_buf(unsigned char seed, unsigned char *key, unsigned char *src,
 
 uint32_t buffalo_csum(uint32_t csum, void *buf, unsigned long len)
 {
-       char *p = buf;
+       signed char *p = buf;
 
        while (len--) {
                int i;