From da0560f1292c977f4286a5a20b78cbbd3ad70ccd Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sun, 3 Jul 2011 20:39:24 +0000 Subject: [PATCH] fixed typo in previous check-in --- src/session_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/session_impl.cpp b/src/session_impl.cpp index b36b8e4de..c983901ed 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -3076,7 +3076,7 @@ namespace aux { char buffer[4096]; char string[1024]; boost::uint32_t value; - FILE* f = fopen("/proc/vmstat"); + FILE* f = fopen("/proc/vmstat", "r"); int ret = 0; while ((ret = fscanf(f, "%s %u\n", string, &value)) != EOF) {