diff --git a/src/ssb.c b/src/ssb.c index 01c545eb..e9e9503f 100644 --- a/src/ssb.c +++ b/src/ssb.c @@ -655,7 +655,7 @@ void tf_ssb_connection_remove_new_message_request(tf_ssb_connection_t* connectio int index = tf_util_insert_index(author, connection->message_requests, connection->message_requests_count, sizeof(tf_ssb_connection_message_request_t), _message_request_compare); if (index < connection->message_requests_count && strcmp(author, connection->message_requests[index].author) == 0) { - memmove(connection->message_requests + index, connection->message_requests + index + 1, sizeof(tf_ssb_connection_message_request_t) * (connection->message_requests_count - index)); + memmove(connection->message_requests + index, connection->message_requests + index + 1, sizeof(tf_ssb_connection_message_request_t) * (connection->message_requests_count - index - 1)); connection->message_requests_count--; } }