Index: base/file_util.h |
diff --git a/base/file_util.h b/base/file_util.h |
index 487a171dbbe2c1dd3039e953a2317d99e409680a..7ca2d38968e52c66eb0b470046116e71352eec5c 100644 |
--- a/base/file_util.h |
+++ b/base/file_util.h |
@@ -309,9 +309,9 @@ BASE_EXPORT bool CloseFile(FILE* file); |
// This is a cross-platform analog to Windows' SetEndOfFile() function. |
BASE_EXPORT bool TruncateFile(FILE* file); |
-// Reads the given number of bytes from the file into the buffer. Returns |
-// the number of read bytes, or -1 on error. |
-BASE_EXPORT int ReadFile(const FilePath& filename, char* data, int size); |
+// Reads at most the given number of bytes from the file into the buffer. |
+// Returns the number of read bytes, or -1 on error. |
+BASE_EXPORT int ReadFile(const FilePath& filename, char* data, int max_size); |
// Writes the given buffer into the file, overwriting any data that was |
// previously there. Returns the number of bytes written, or -1 on error. |