Obsolete
/
libipc-old
Archived
3
0
Fork 0

Message size for input callback in switch context: fixed.

more_to_read
Karchnu 2020-07-21 00:47:01 +02:00
parent 7fda2bd1ad
commit 62dcda8263
1 changed files with 2 additions and 2 deletions

View File

@ -200,8 +200,8 @@ enum ipccb
default_cb_in(int fd, struct ipc_message *m) default_cb_in(int fd, struct ipc_message *m)
{ {
// TODO: fix buffer size for switching messages // TODO: fix buffer size for switching messages
size_t msize = 4096; size_t msize = IPC_MAX_MESSAGE_SIZE;
char buf[msize]; SECURE_BUFFER_DECLARATION (char, buf, msize);
char *pbuf = buf; char *pbuf = buf;
// By default, usock_read (a wrapper around read(2)) is used. // By default, usock_read (a wrapper around read(2)) is used.