diff options
author | jim-p <jimp@pfsense.org> | 2010-09-29 10:57:27 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-09-29 11:00:22 -0400 |
commit | 616421003273355b645f116aa9a383afea61e375 (patch) | |
tree | 04f73066a248ed6b0cbc3cc6551ebc548aba3eaf | |
parent | 31b33817186ff73a426047d0d160ea05ae2a6608 (diff) | |
download | pfsense-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
-rw-r--r-- | config/tinydns/tinydns.inc | 4 |
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)); } } |