summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2003-08-12 13:24:21 +0000
committerharti <harti@FreeBSD.org>2003-08-12 13:24:21 +0000
commita40178b3b1de3071a02ff8b8201c46d8fdb631d0 (patch)
tree48f191f25edaa9aa1336790b525aa1100edd6217 /sys/ddb
parent81168c64d46b373b0998cedc19a52e94b83de1de (diff)
downloadFreeBSD-src-a40178b3b1de3071a02ff8b8201c46d8fdb631d0.zip
FreeBSD-src-a40178b3b1de3071a02ff8b8201c46d8fdb631d0.tar.gz
db_get_value uses a local buffer to first fetch all the bytes of a
integer value and then to construct the integer from it. This buffer was sizeof(int) bytes long, which was fine until the (undocumented) 'g' modifier for 8-byte integers was introduced. Change this to sizeof(uint64_t).
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ddb/db_access.c b/sys/ddb/db_access.c
index fa61f3d..15545de 100644
--- a/sys/ddb/db_access.c
+++ b/sys/ddb/db_access.c
@@ -54,7 +54,7 @@ db_get_value(addr, size, is_signed)
register int size;
boolean_t is_signed;
{
- char data[sizeof(int)];
+ char data[sizeof(u_int64_t)];
register db_expr_t value;
register int i;
OpenPOWER on IntegriCloud