nhmk/examples
linD026 95a7ca513f Fix the buffer length may cause a read error
Since The length of the message buffer is BUF_LEN. When writing the
BUF_LEN length of the string it will overwrite the last character
(usually it is '\0' from the initialization). And, because the read
operation uses the character in the message buffer ('\0') to stop the
read loop. It will cause the read operation will read out of the
message buffer when the length parameter of read() is not lower than
or equal to BUF_LEN. So add one more byte space to avoid this problem.
2022-09-08 06:08:04 +08:00
..
2022-02-21 00:53:29 +08:00
2022-03-09 14:14:08 +08:00
2021-08-08 01:24:59 +08:00
2021-09-04 17:53:29 +08:00
2022-04-19 01:54:24 +08:00
2022-04-19 01:54:24 +08:00
2022-04-19 01:54:24 +08:00