Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1986,6 +1986,7 @@ bool call::executeMessage(message *curmsg)
last_send_index = curmsg->index;
last_send_len = msgLen;
realloc_ptr = (char *) realloc(last_send_msg, msgLen+1);
realloc_ptr[msgLen] = '\0';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly does this fix? Isn't it done anyway in line 1997?

if (realloc_ptr) {
last_send_msg = realloc_ptr;
} else {
Expand Down