freebsd branch: memory plugin: Quick bugfix. Works under FreeBSD now.
authorocto <octo>
Wed, 7 Jun 2006 16:53:54 +0000 (16:53 +0000)
committerocto <octo>
Wed, 7 Jun 2006 16:53:54 +0000 (16:53 +0000)
src/memory.c

index 6c89dbc..a6fc1ab 100644 (file)
@@ -213,7 +213,7 @@ static void memory_read (void)
        {
                len = sizeof (int);
                if ((status = sysctlbyname (sysctl_keys[i],
-                                               (void *) &sysctl_vals[i], len,
+                                               (void *) &sysctl_vals[i], &len,
                                                NULL, 0)) < 0)
                {
                        syslog (LOG_ERR, "memory plugin: sysctlbyname (%s): %s",