summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/debugedit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/debugedit.c b/tools/debugedit.c
index 3eab50da5..5b834fda6 100644
--- a/tools/debugedit.c
+++ b/tools/debugedit.c
@@ -1328,7 +1328,7 @@ handle_build_id (DSO *dso, Elf_Data *build_id,
}
/* Clear the old bits so they do not affect the new hash. */
- memset ((char *) build_id->d_buf + build_id_offset, 0, build_id_offset);
+ memset ((char *) build_id->d_buf + build_id_offset, 0, build_id_size);
hashFunctionContextInit (&ctx, hf);