fix buffer size allocation

This commit is contained in:
Bastian Bloessl
2016-08-22 15:31:47 +02:00
parent 43abd875d9
commit 23a195311a
3 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ void app_in (pmt::pmt_t msg) {
return;
}
if(msg_len >= MAX_FRAME_SIZE - 32) {
if(msg_len > MAX_PAYLOAD_SIZE) {
throw std::invalid_argument("Frame too large (> 1500)");
}