firmware-utils/buffalo-enc: explicitly use signed char for checksum function

ARM defaults to unsigned char and that breaks the calculation, as it
relies on sign extension

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 47186
This commit is contained in:
Felix Fietkau 2015-10-12 13:11:20 +00:00
parent 772e2c0a77
commit 86492a1eb8

View 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;