summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2004-04-06 16:02:13 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2004-04-06 16:02:13 (GMT)
commitffa7482cb6de4e2ec2e8f99a832fc9a6425150b6 (patch)
treeab9e672600b6b1e8315bb675b6fc0bdde7d49c2c /plugins
parent72d0789bb93484f3a2c5c7e58ee1c97f71431c2e (diff)
downloadmonitoring-plugins-ffa7482cb6de4e2ec2e8f99a832fc9a6425150b6.tar.gz
Fixed weird scanf bug on Solaris
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@864 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_procs.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index edb33ac..402daa5 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -155,10 +155,6 @@ main (int argc, char **argv)
155 /* Zombie processes do not give a procprog command */ 155 /* Zombie processes do not give a procprog command */
156 if ( cols == (expected_cols - 1) && strstr(procstat, zombie) ) { 156 if ( cols == (expected_cols - 1) && strstr(procstat, zombie) ) {
157 cols = expected_cols; 157 cols = expected_cols;
158 /* Set some value for procargs for the strip command further below
159 Seen to be a problem on some Solaris 7 and 8 systems */
160 input_buffer[pos] = '\n';
161 input_buffer[pos+1] = 0x0;
162 } 158 }
163 if ( cols >= expected_cols ) { 159 if ( cols >= expected_cols ) {
164 resultsum = 0; 160 resultsum = 0;