Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/android/android-emu/android/base/system/System.cpp b/android/android-emu/android/base/system/System.cpp
- index 53b1085..c6f08e7 100755
- --- a/android/android-emu/android/base/system/System.cpp
- +++ b/android/android-emu/android/base/system/System.cpp
- @@ -643,9 +643,9 @@ public:
- #elif defined (__linux__)
- size_t size = 0;
- FILE *fp = fopen("/proc/self/status", "r");
- - char buf[256];
- + char buf[1024];
- if (fp != NULL) {
- - while (fscanf(fp, "%s:", buf) > 0) {
- + while (fscanf(fp, "%256s:", buf) > 0) {
- if (strcmp(buf, "VmRSS:") == 0) {
- fscanf(fp, "%lu", &size);
- res.resident = size * 1024;
Advertisement
Add Comment
Please, Sign In to add comment