diff options
-rw-r--r-- | tests/runner.py | 2 |
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); |