From f79fb4976cd1e4775a4959be3ddda557204939e0 Mon Sep 17 00:00:00 2001 From: Theodore Ts'o Date: Fri, 21 Dec 2007 11:32:48 -0500 Subject: [PATCH] libuuid: Fix bug which caused uuidd to fail if sizeof(int) != sizeof(int *) Signed-off-by: "Theodore Ts'o" --- lib/uuid/gen_uuid.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/uuid/gen_uuid.c b/lib/uuid/gen_uuid.c index 397a207..0bea060 100644 --- a/lib/uuid/gen_uuid.c +++ b/lib/uuid/gen_uuid.c @@ -421,9 +421,9 @@ static int get_uuid_via_daemon(int op, uuid_t out, int *num) op_buf[0] = op; op_len = 1; if (op == UUIDD_OP_BULK_TIME_UUID) { - memcpy(op_buf+1, num, sizeof(num)); - op_len += sizeof(num); - expected += sizeof(num); + memcpy(op_buf+1, num, sizeof(*num)); + op_len += sizeof(*num); + expected += sizeof(*num); } ret = write(s, op_buf, op_len); -- 1.8.3.1