diff --git a/src/call.cpp b/src/call.cpp index a7368644..4d55cbc7 100644 --- a/src/call.cpp +++ b/src/call.cpp @@ -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'; if (realloc_ptr) { last_send_msg = realloc_ptr; } else {