n stores the read/transferred bytes. This returns a ssize_t.
We were casting to an int, which theoretically is a loss of data.
In practice it isn't an issue as we only read a max of MAX_IPC_SIZE at a
time, which would fit in an int.
n stores the read/transferred bytes. This returns a ssize_t.
We were casting to an int, which theoretically is a loss of data.
In practice it isn't an issue as we only read a max of MAX_IPC_SIZE at a
time, which would fit in an int.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |