projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/rrd_client.c: Fix a potential segmentation fault in "get_path".
[rrdtool.git]
/
src
/
hash_32.c
diff --git
a/src/hash_32.c
b/src/hash_32.c
index
0473696
..
7885c3e
100644
(file)
--- a/
src/hash_32.c
+++ b/
src/hash_32.c
@@
-102,7
+102,7
@@
Fnv32_t fnv_32_buf(
hval *= FNV_32_PRIME;
/* xor the bottom with the current octet */
hval *= FNV_32_PRIME;
/* xor the bottom with the current octet */
- hval ^= (Fnv32_t) *
bp++;
+ hval ^= (Fnv32_t) *bp++;
}
/* return our new hash value */
}
/* return our new hash value */
@@
-141,7
+141,7
@@
Fnv32_t fnv_32_str(
hval *= FNV_32_PRIME;
/* xor the bottom with the current octet */
hval *= FNV_32_PRIME;
/* xor the bottom with the current octet */
- hval ^= (Fnv32_t) *
s++;
+ hval ^= (Fnv32_t) *s++;
}
/* return our new hash value */
}
/* return our new hash value */