summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2015-11-18 10:33:33 -0600
committerMatt Smith <mgsmith@netgate.com>2015-11-18 10:33:33 -0600
commit4c5744d81b89fdee8996ca0e414077d58580a626 (patch)
tree73eadb7e9e035c6a23322f55539bdadb1f45845d
parent31ea17193a65b70138675899a515a643708b7874 (diff)
downloadFreeBSD-src-4c5744d81b89fdee8996ca0e414077d58580a626.zip
FreeBSD-src-4c5744d81b89fdee8996ca0e414077d58580a626.tar.gz
Importing pfSense patch patch-r285719.diff
-rw-r--r--usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
index 883d67a..33a54b5 100644
--- a/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
+++ b/usr.sbin/bsnmpd/modules/snmp_hostres/hostres_printer_tbl.c
@@ -175,7 +175,7 @@ get_printer_status(const struct printer *pp)
goto LABEL_DONE;
}
- memset(&fline[0], '\0', sizeof(line));
+ memset(&fline[0], '\0', sizeof(fline));
if (fgets(fline, sizeof(fline) -1, f) == NULL) {
ps = PS_UNKNOWN;
goto LABEL_DONE;
OpenPOWER on IntegriCloud