summaryrefslogtreecommitdiff
path: root/gr-run-waveform
diff options
context:
space:
mode:
authorRob Savoye2010-11-28 10:18:14 -0700
committerRob Savoye2010-11-28 10:18:14 -0700
commit7be688c21cbd9a912110ceb267dc85408af192d7 (patch)
treee79223b58a5f6f25097b537269e5bca8a4293572 /gr-run-waveform
parentb4d963b675db225a86a7243c10ba1f8cd6e34fdc (diff)
downloadgnuradio-7be688c21cbd9a912110ceb267dc85408af192d7.tar.gz
gnuradio-7be688c21cbd9a912110ceb267dc85408af192d7.tar.bz2
gnuradio-7be688c21cbd9a912110ceb267dc85408af192d7.zip
allocate memory for the port buffer
Diffstat (limited to 'gr-run-waveform')
-rw-r--r--gr-run-waveform/xyzzy.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gr-run-waveform/xyzzy.cc b/gr-run-waveform/xyzzy.cc
index bea36d898..4123c9afc 100644
--- a/gr-run-waveform/xyzzy.cc
+++ b/gr-run-waveform/xyzzy.cc
@@ -81,7 +81,6 @@ XYZZY::init(const std::string &file)
return false;
}
- cout << "There are " << header->number_of_dir_entries << " of directory entries" << endl;
// Read in the Directory table
length = sizeof(struct directory_entry);
char dir[length];
@@ -280,7 +279,7 @@ make_xyzzy (SCM binary_port, unsigned long mode)
if (SCM_INPUT_PORT_P (port)) {
c_port = SCM_PTAB_ENTRY (port);
-// c_port->read_buf = scm_gc_malloc (XYZZY_INPUT_BUFFER_SIZE, "port buffer");
+ c_port->read_buf = (unsigned char *)scm_gc_malloc (XYZZY_INPUT_BUFFER_SIZE, "port buffer");
c_port->read_pos = c_port->read_end = c_port->read_buf;
c_port->read_buf_size = XYZZY_INPUT_BUFFER_SIZE;