Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libresolv Use the size of the object pointed to, not the...
details: https://anonhg.NetBSD.org/src/rev/00d5fa549309
branches: trunk
changeset: 782711:00d5fa549309
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Nov 16 02:11:05 2012 +0000
description:
Use the size of the object pointed to, not the size of the pointer.
diffstat:
lib/libresolv/dst_internal.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 52d007b3574f -r 00d5fa549309 lib/libresolv/dst_internal.h
--- a/lib/libresolv/dst_internal.h Fri Nov 16 02:10:26 2012 +0000
+++ b/lib/libresolv/dst_internal.h Fri Nov 16 02:11:05 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dst_internal.h,v 1.1 2012/11/15 18:48:48 christos Exp $ */
+/* $NetBSD: dst_internal.h,v 1.2 2012/11/16 02:11:05 joerg Exp $ */
#ifndef DST_INTERNAL_H
#define DST_INTERNAL_H
@@ -83,7 +83,7 @@
#endif
#ifndef SAFE_FREE
-#define SAFE_FREE(a) SAFE_FREE2((a), sizeof(a))
+#define SAFE_FREE(a) SAFE_FREE2((a), sizeof(*(a)))
#endif
typedef struct dst_func {
Home |
Main Index |
Thread Index |
Old Index