summaryrefslogtreecommitdiffstats
path: root/plugins/check_procs.c
diff options
context:
space:
mode:
authorRincewindsHat <12514511+RincewindsHat@users.noreply.github.com>2021-11-17 17:09:25 (GMT)
committerGitHub <noreply@github.com>2021-11-17 17:09:25 (GMT)
commit4549a9524349c4384c0a7a2ca8662a418fc8fbe5 (patch)
tree5dc46e43ff07bb450e3d0e6b58a638866890803d /plugins/check_procs.c
parentad45727dbe03fae94ed2a7ac26ca828fe0fa6264 (diff)
parent9076ea36f70dbd643de4102a88dbd2f18847af16 (diff)
downloadmonitoring-plugins-4549a9524349c4384c0a7a2ca8662a418fc8fbe5.tar.gz
Merge pull request #1654 from wolfgangkarall/master
check_procs -- exchange needle and haystack in strstr() for proper st…
Diffstat (limited to 'plugins/check_procs.c')
-rw-r--r--plugins/check_procs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/check_procs.c b/plugins/check_procs.c
index bae429d..4872340 100644
--- a/plugins/check_procs.c
+++ b/plugins/check_procs.c
@@ -265,7 +265,7 @@ main (int argc, char **argv)
265 } 265 }
266 } 266 }
267 267
268 if ((options & STAT) && (strstr (statopts, procstat))) 268 if ((options & STAT) && (strstr (procstat, statopts)))
269 resultsum |= STAT; 269 resultsum |= STAT;
270 if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL)) 270 if ((options & ARGS) && procargs && (strstr (procargs, args) != NULL))
271 resultsum |= ARGS; 271 resultsum |= ARGS;