diff --git a/bird-rtrlib-cli.c b/bird-rtrlib-cli.c index 81aff01..98a0f7c 100644 --- a/bird-rtrlib-cli.c +++ b/bird-rtrlib-cli.c @@ -165,7 +165,7 @@ static void pfx_update_callback(struct pfx_table *table, write(bird_socket, bird_command, strlen(bird_command)); // Fetch the answer and log. - bird_response[read(bird_socket, bird_response, sizeof bird_response)] = 0; + bird_response[read(bird_socket, bird_response, sizeof(bird_response)-1)] = 0; syslog(LOG_INFO, "From BIRD: %s", bird_response); }