changeset 2622:ad8b085f4a9d

. BSD specific changes equivalent to the Linux specific changes.
author Greg Lewis <glewis@eyesbeyond.com>
date Fri, 20 May 2011 20:38:49 -0700
parents af1c92690fa4
children aef044ebf658
files src/os/bsd/vm/os_bsd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/os/bsd/vm/os_bsd.cpp	Fri May 20 20:04:01 2011 -0700
+++ b/src/os/bsd/vm/os_bsd.cpp	Fri May 20 20:38:49 2011 -0700
@@ -3019,7 +3019,7 @@
         char chars[257];
         long x = 0;
         if (fgets(chars, sizeof(chars), fp)) {
-          if (sscanf(chars, "%lx-%*lx", &x) == 1
+          if (sscanf(chars, "%lx-%*x", &x) == 1
               && x == (long)p) {
             if (strstr (chars, "hugepage")) {
               result = true;