diff --git a/main.cpp b/main.cpp index 578cb2096..123cb66f4 100644 --- a/main.cpp +++ b/main.cpp @@ -2032,7 +2032,7 @@ std::pair read_input(std::vector &sources, char *fname, i vertex_readers.push_back(readers[i].vertexfile); rewind(readers[i].vertexfile); } - fqsort(vertex_readers, sizeof(vertex), vertexcmp, vertex_out); + fqsort(vertex_readers, sizeof(vertex), vertexcmp, vertex_out, memsize / 4); for (size_t i = 0; i < CPUS; i++) { if (fclose(readers[i].vertexfile) != 0) {