diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-01-06 18:17:07 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-01-06 18:17:07 +0000 |
commit | 133690c1f190a032890f38d7409442fdb45214e6 (patch) | |
tree | 48ad4aab20784c82289209900e62cc81e4c67902 | |
parent | 2076078ae03061eba3512dc8b09e7bf45d1ee64d (diff) |
increase buffer size; ie. for hw.sensors.ipmi0.indicator0
from cnst+openbsd@bugmail.mojo.ru
-rw-r--r-- | usr.sbin/sensorsd/sensorsd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/sensorsd/sensorsd.c b/usr.sbin/sensorsd/sensorsd.c index db8d9fc4aba..139ac59f664 100644 --- a/usr.sbin/sensorsd/sensorsd.c +++ b/usr.sbin/sensorsd/sensorsd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensorsd.c,v 1.26 2006/12/23 17:49:53 deraadt Exp $ */ +/* $OpenBSD: sensorsd.c,v 1.27 2007/01/06 18:17:06 deraadt Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -115,7 +115,8 @@ main(int argc, char *argv[]) mib[3] = type; for (numt = 0; numt < sensordev.maxnumt[type]; numt++) { mib[4] = numt; - if (sysctl(mib, 5, &sensor, &slen, NULL, 0) == -1) { + if (sysctl(mib, 5, &sensor, &slen, NULL, 0) + == -1) { if (errno != ENOENT) warn("sysctl"); continue; @@ -402,7 +403,7 @@ parse_config(char *cf) { struct limits_t *p, *next; char *buf = NULL, *ebuf = NULL; - char node[24]; + char node[48]; char **cfa; int watch_cnt = 0; |