mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-18 00:37:01 +00:00
output: avoid mixing ntop_ipaddr() output buffers
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
66183bc7c7
commit
50fc4ebe9d
2 changed files with 8 additions and 8 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue