From 48057472608f25f31d76ced4c51bee2b2b5337da Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 31 Jul 2016 20:06:51 -0400 Subject: Fix possible ringbuffer overflow --- libs/ardour/worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/worker.cc') 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)) { -- cgit v1.2.3