summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2008-10-07 21:35:05 +0000
committerwtc%google.com <devnull@localhost>2008-10-07 21:35:05 +0000
commit9cb0106c858de785d44202df6ed5a100d644104a (patch)
tree02d1f542ace9c36800d7c82ab2a1e1ab87c09085
parent22d9ec516ee1209db6847c4f29b9a9f07c50a75d (diff)
downloadnspr-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.c2
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,