Skip to content

Commit

Permalink
Is always 10
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroennijhof committed May 23, 2014
1 parent 94a068b commit 92eb46c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void get_hash(const char *s, char hash[10]) {
/* hash = hash * 33 ^ c */
_hash = ((_hash << 5) + _hash) ^ c;
}
snprintf(hash, sizeof(hash), "%u", _hash);
snprintf(hash, 10, "%u", _hash);
}

DB *open_cache() {
Expand Down

0 comments on commit 92eb46c

Please sign in to comment.