From 7720fc973dbed9e06746b34d7def45c9e77d3c74 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 7 Nov 2007 05:32:25 +0000 Subject: [PATCH] fix disk_usage memcpy --- src/os/linux/linux_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index ebdfe0cc..2ec78725 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -1591,7 +1591,7 @@ int sigar_disk_usage_get(sigar_t *sigar, const char *name, disk->service_time = tput ? util / tput : 0.0; } - memcpy(&iodev->disk, disk, sizeof(&iodev->disk)); + memcpy(&iodev->disk, disk, sizeof(iodev->disk)); if (partition_usage) { partition_usage->service_time = disk->service_time; }