summaryrefslogtreecommitdiff
path: root/src/etag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/etag.c')
-rw-r--r--src/etag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etag.c b/src/etag.c
index 630956f..c44278b 100644
--- a/src/etag.c
+++ b/src/etag.c
@@ -44,7 +44,7 @@ int etag_mutate(buffer *mut, buffer *etag) {
size_t i;
uint32_t h;
- for (h=0, i=0; i < etag->used; ++i) h = (h<<5)^(h>>27)^(etag->ptr[i]);
+ for (h=0, i=0; i < etag->used-1; ++i) h = (h<<5)^(h>>27)^(etag->ptr[i]);
buffer_reset(mut);
buffer_copy_string_len(mut, CONST_STR_LEN("\""));