]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(mprobe): Call checkhdr with adjusted pointer.
authorUlrich Drepper <drepper@redhat.com>
Fri, 28 Aug 1998 12:06:59 +0000 (12:06 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 28 Aug 1998 12:06:59 +0000 (12:06 +0000)
malloc/mcheck.c

index 93ab64217656071c3a683be910a3d2bbb3d3f198..05d4af25419f103b94fa0b1069f642f3f0dc32b2 100644 (file)
@@ -229,5 +229,5 @@ mcheck (func)
 enum mcheck_status
 mprobe (__ptr_t ptr)
 {
-  return mcheck_used ? checkhdr (ptr) : MCHECK_DISABLED;
+  return mcheck_used ? checkhdr (((struct hdr *) ptr) - 1) : MCHECK_DISABLED;
 }