summaryrefslogtreecommitdiff
path: root/util/version.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'util/version.cpp')
-rw-r--r--util/version.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/version.cpp b/util/version.cpp
index c49288a1aed..2001a5116e4 100644
--- a/util/version.cpp
+++ b/util/version.cpp
@@ -112,7 +112,7 @@ namespace mongo {
f.open("/proc/self/numa_maps", /*read_only*/true);
if ( f.is_open() && ! f.bad() ) {
char line[100]; //we only need the first line
- read(f.fd, line, sizeof(line));
+ assert( read(f.fd, line, sizeof(line)) <= 100 );
// just in case...
line[98] = ' ';