output: avoid mixing ntop_ipaddr() output buffers

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2017-11-11 08:12:51 +00:00
parent 66183bc7c7
commit 50fc4ebe9d
No known key found for this signature in database
GPG key ID: A9553245FDE9B739
2 changed files with 8 additions and 8 deletions

View file

@ -80,8 +80,8 @@ static int must_put_range(void *closure, const char *name, int escape
return 0;
}
if (!strcmp(name, "range")) {
fprintf(file, "%s - %s", ntop_ipaddr(&e->range_p->first_ip),
ntop_ipaddr(&e->range_p->last_ip));
fprintf(file, "%s - ", ntop_ipaddr(&e->range_p->first_ip));
fprintf(file, "%s", ntop_ipaddr(&e->range_p->last_ip));
return 0;
}
if (!strcmp(name, "first_ip")) {