aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/tinydns/tinydns.inc')
-rw-r--r--config/tinydns/tinydns.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/tinydns/tinydns.inc b/config/tinydns/tinydns.inc
index c239a40e..d1d14ec3 100644
--- a/config/tinydns/tinydns.inc
+++ b/config/tinydns/tinydns.inc
@@ -936,8 +936,8 @@ function tinydns_add_active_leases($fl, $fd, $leasedomain) {
* timestamp in tai64 format. See tinydns-data and djbs tai64 site:
* http://cr.yp.to/libtai/tai64.html
*/
- fprintf($fd, "=%s.%s:%s:0:4%015x\n", $lease['client-hostname'],
- $leasedomain, $lease['ip'], $lease['ends'] + 10);
+ fwrite($fd, sprintf("=%s.%s:%s:0:4%015x\n", $lease['client-hostname'],
+ $leasedomain, $lease['ip'], $lease['ends'] + 10));
}
}