From 591e4c335246f00e448ec22ed706ee8a30ccd632 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 13 Jun 2011 08:12:41 +0000 Subject: tools/firmware-utils: fix buffalo csum calculation Also print an error message if decryption fails. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27167 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/firmware-utils/src/buffalo-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/firmware-utils/src/buffalo-lib.c') diff --git a/tools/firmware-utils/src/buffalo-lib.c b/tools/firmware-utils/src/buffalo-lib.c index 00ad1a5c10..29aee9f88d 100644 --- a/tools/firmware-utils/src/buffalo-lib.c +++ b/tools/firmware-utils/src/buffalo-lib.c @@ -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) { - unsigned char *p = buf; + char *p = buf; while (len--) { int i; -- cgit v1.2.3