summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-07-21 01:42:07 +0200
committerMichael Tänzer <neo@nhng.de>2011-07-21 01:42:07 +0200
commit900d6e061e04c38ef72bbe73ac53d3f083eda01a (patch)
tree28ed2ad96f009eb7da3cd07699bac005c6851b49
parentf0db9d78a5e3b22ec7aa1cbc86d6d8836bf3566f (diff)
downloadcacert-devel-900d6e061e04c38ef72bbe73ac53d3f083eda01a.tar.gz
cacert-devel-900d6e061e04c38ef72bbe73ac53d3f083eda01a.tar.xz
cacert-devel-900d6e061e04c38ef72bbe73ac53d3f083eda01a.zip
bug 954: second parameter to fgets() is optional and as we have nobug-954
reasonable value, just get rid of it Signed-off-by: Michael Tänzer <neo@nhng.de>
-rwxr-xr-xscripts/mass-revoke.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mass-revoke.php b/scripts/mass-revoke.php
index 35eb24f..18c036b 100755
--- a/scripts/mass-revoke.php
+++ b/scripts/mass-revoke.php
@@ -36,7 +36,7 @@ $in = fopen("php://stdin", "r");
# The restriction on revoked timestamp os only "to be sure" for non-Org certs,
# but Org certs (email and serer) may be included multiple times in the output
# of DumpWeakCerts.pl (once for each OrgAdmin).
-while($in_string = rtrim(fgets($in, 255))) {
+while($in_string = rtrim(fgets($in))) {
list($cert_type, $cert_email, $owner_name, $cert_expire, $cert_CN, $reason,
$cert_serial, $cert_recid) = explode("\t", $in_string);