diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-06-13 08:12:41 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-06-13 08:12:41 +0000 |
commit | 0d7a558f23b6bc421e9c0ab69c73576501523e68 (patch) | |
tree | c74e3afaea755c18d9f50874dcbb464200bff894 /tools/firmware-utils/src/buffalo-lib.c | |
parent | b7e016ba42728e41ffb28ee6074eac4aa5ff0101 (diff) | |
download | upstream-0d7a558f23b6bc421e9c0ab69c73576501523e68.tar.gz upstream-0d7a558f23b6bc421e9c0ab69c73576501523e68.tar.bz2 upstream-0d7a558f23b6bc421e9c0ab69c73576501523e68.zip |
tools/firmware-utils: fix buffalo csum calculation
Also print an error message if decryption fails.
SVN-Revision: 27167
Diffstat (limited to 'tools/firmware-utils/src/buffalo-lib.c')
-rw-r--r-- | tools/firmware-utils/src/buffalo-lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |