diff options
author | harti <harti@FreeBSD.org> | 2003-08-12 13:24:21 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-08-12 13:24:21 +0000 |
commit | a40178b3b1de3071a02ff8b8201c46d8fdb631d0 (patch) | |
tree | 48f191f25edaa9aa1336790b525aa1100edd6217 /sys | |
parent | 81168c64d46b373b0998cedc19a52e94b83de1de (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/ddb/db_access.c | 2 |
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; |