diff options
author | wtc%google.com <devnull@localhost> | 2008-10-07 21:35:05 +0000 |
---|---|---|
committer | wtc%google.com <devnull@localhost> | 2008-10-07 21:35:05 +0000 |
commit | 9cb0106c858de785d44202df6ed5a100d644104a (patch) | |
tree | 02d1f542ace9c36800d7c82ab2a1e1ab87c09085 | |
parent | 22d9ec516ee1209db6847c4f29b9a9f07c50a75d (diff) | |
download | nspr-hg-9cb0106c858de785d44202df6ed5a100d644104a.tar.gz |
Bug 454878: On Mac OS X, the 'count' argument to host_info should be
initialized to HOST_BASIC_INFO_COUNT, which is the size of the
host_basic_info structure in integer_t's. r=joshmoz.
-rw-r--r-- | pr/src/misc/prsystem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pr/src/misc/prsystem.c b/pr/src/misc/prsystem.c index dc4f158d..f3542a50 100644 --- a/pr/src/misc/prsystem.c +++ b/pr/src/misc/prsystem.c @@ -300,7 +300,7 @@ PR_IMPLEMENT(PRUint64) PR_GetPhysicalMemorySize(void) #elif defined(DARWIN) struct host_basic_info hInfo; - mach_msg_type_number_t count = sizeof(hInfo); + mach_msg_type_number_t count = HOST_BASIC_INFO_COUNT; int result = host_info(mach_host_self(), HOST_BASIC_INFO, |