diff options
author | David Robillard <d@drobilla.net> | 2016-07-31 20:06:51 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-07-31 20:06:51 -0400 |
commit | 48057472608f25f31d76ced4c51bee2b2b5337da (patch) | |
tree | 98fe6e5389264f22106840bf8466f136c81aea77 /libs/ardour/worker.cc | |
parent | 96511688a132aade447d0111924af16812135224 (diff) |
Fix possible ringbuffer overflow
Diffstat (limited to 'libs/ardour/worker.cc')
-rw-r--r-- | libs/ardour/worker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/worker.cc b/libs/ardour/worker.cc index ce71c92a15..9d6dd09b55 100644 --- a/libs/ardour/worker.cc +++ b/libs/ardour/worker.cc @@ -63,7 +63,7 @@ Worker::schedule(uint32_t size, const void* data) bool Worker::respond(uint32_t size, const void* data) { - if (_requests->write_space() < size + sizeof(size)) { + if (_responses->write_space() < size + sizeof(size)) { return false; } if (_responses->write((const uint8_t*)&size, sizeof(size)) != sizeof(size)) { |