From 616421003273355b645f116aa9a383afea61e375 Mon Sep 17 00:00:00 2001 From: jim-p Date: Wed, 29 Sep 2010 10:57:27 -0400 Subject: Switch this call from fprintf to fwrite/sprintf, fprintf does not exist on PHP4 so this would not work on 1.2.x --- config/tinydns/tinydns.inc | 4 ++-- 1 file 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)); } } -- cgit v1.2.3