diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-19 16:18:48 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2015-01-19 16:18:48 -0500 |
commit | 24b747383190536a928169c76b2152595a6ed2f8 (patch) | |
tree | b49a564e2f95bc8688a44bc0ce72fb8e5c3c51d4 /tools | |
parent | ffe3f7ee6fd09a918b0e81747ca6857ece1c043b (diff) |
C fix for readtest (git command ordering caused this)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/readtest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/readtest.cc b/tools/readtest.cc index 91c6a26d81..53f559c4d3 100644 --- a/tools/readtest.cc +++ b/tools/readtest.cc @@ -1,4 +1,4 @@ -/* g++ -o readtest readtest.cc `pkg-config --cflags --libs sndfile` `pkg-config --cflags --libs glibmm-2.4` */ +/* gcc -o readtest readtest.cc `pkg-config --cflags --libs glib-2.0` */ #include <stdlib.h> #include <errno.h> @@ -120,7 +120,7 @@ main (int argc, char* argv[]) files[n] = fd; } - data = new char[block_size]; + data = (char*) malloc (sizeof (char) * block_size); uint64_t read = 0; while (true) { |