Update client_upcall.c
Strlen will just look for a null character for its calculations. so this code doesn't make sense.
but it is dangerous because if the code is changed as a result of the development of the project, then the function may go beyond the allocated memory.
I suggest deleting this call.
@@ -308,7 +308,6 @@ main(int argc, char *argv[])
while (!done && !input_done) {
if (inputAvailable()) {
if (fgets(buffer, sizeof(buffer), stdin) != NULL) {
- buffer[strlen(buffer)] = '\0';
usrsctp_sendv(sock, buffer, strlen(buffer), NULL, 0, NULL, 0, SCTP_SENDV_NOINFO, 0);
} else {
if (usrsctp_shutdown(sock, SHUT_WR) < 0) {
