diff --git a/public-trunk/Transceiver/UHDDevice.cpp b/public-trunk/Transceiver/UHDDevice.cpp index 5c6d418..b992638 100644 --- a/public-trunk/Transceiver/UHDDevice.cpp +++ b/public-trunk/Transceiver/UHDDevice.cpp @@ -623,7 +623,7 @@ ssize_t SampleBuffer::write(void *buf, size_t len, TIMESTAMP timestamp) size_t writeStart = (dataStart + (timestamp - timeStart)) % bufferLen; // Write it - if ((writeStart + len) <= bufferLen) { + if ((writeStart + len) < bufferLen) { size_t numBytes = len * 2 * sizeof(short); memcpy(data + writeStart, buf, numBytes); }