aboutsummaryrefslogtreecommitdiffstats
path: root/config/tinydns/tinydns.inc
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-09-29 10:57:27 -0400
committerjim-p <jimp@pfsense.org>2010-09-29 11:00:22 -0400
commit616421003273355b645f116aa9a383afea61e375 (patch)
tree04f73066a248ed6b0cbc3cc6551ebc548aba3eaf /config/tinydns/tinydns.inc
parent31b33817186ff73a426047d0d160ea05ae2a6608 (diff)
downloadpfsense-packages-616421003273355b645f116aa9a383afea61e375.tar.gz
pfsense-packages-616421003273355b645f116aa9a383afea61e375.tar.bz2
pfsense-packages-616421003273355b645f116aa9a383afea61e375.zip
Switch this call from fprintf to fwrite/sprintf, fprintf does not exist on PHP4 so this would not work on 1.2.x
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));
}
}