aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-06 14:00:21 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-06 14:00:21 -0800
commit4245dd48d1cb9b741ba637781fb332a6fc450efe (patch)
treef08ad556f2b7cb64f1f87adcc68b1cf85516a682
parent8423e86040a93c18d8042a943965c5518a344216 (diff)
workaround for node issue 2280 in test_memorygrowth
-rw-r--r--tests/runner.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/runner.py b/tests/runner.py
index 8cc67bab..b27b6cbb 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -1620,7 +1620,7 @@ if 'benchmark' not in str(sys.argv):
printf("*pre: %s,%.3f*\n", buf1, buf2[0]);
int totalMemory = emscripten_run_script_int("TOTAL_MEMORY");
- char *buf3 = (char*)malloc(totalMemory*2);
+ char *buf3 = (char*)malloc(totalMemory+1);
char *buf4 = (char*)malloc(100);
float *buf5 = (float*)malloc(100);
//printf("totalMemory: %d bufs: %d,%d,%d,%d,%d\n", totalMemory, buf1, buf2, buf3, buf4, buf5);