Make message buffer static
Now that the message max size is 256k, do not put the buffer on the stack.
This commit is contained in:
@@ -60,7 +60,7 @@ static int
|
||||
run_receiver(void *data) {
|
||||
struct receiver *receiver = data;
|
||||
|
||||
unsigned char buf[DEVICE_MSG_MAX_SIZE];
|
||||
static unsigned char buf[DEVICE_MSG_MAX_SIZE];
|
||||
size_t head = 0;
|
||||
|
||||
for (;;) {
|
||||
|
||||
Reference in New Issue
Block a user