summaryrefslogtreecommitdiffstats
path: root/plugins/check_snmp.c
diff options
context:
space:
mode:
authorLorenz Kästle <12514511+RincewindsHat@users.noreply.github.com>2023-07-23 19:58:13 (GMT)
committerGitHub <noreply@github.com>2023-07-23 19:58:13 (GMT)
commit7c3098270c5481f64438525be5883f070ebc16a1 (patch)
tree8e3b4a532717659649954b879fb685fce353e863 /plugins/check_snmp.c
parentc22c277b3df4884719c833daaffca59167abd14a (diff)
parentaf06d34071608641295eecd46edb0c4dbde13872 (diff)
downloadmonitoring-plugins-7c3098270c5481f64438525be5883f070ebc16a1.tar.gz
Merge branch 'master' into check_swap_scanf_expressionsrefs/pull/1876/head
Diffstat (limited to 'plugins/check_snmp.c')
-rw-r--r--plugins/check_snmp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/check_snmp.c b/plugins/check_snmp.c
index c425df3..04dc6c6 100644
--- a/plugins/check_snmp.c
+++ b/plugins/check_snmp.c
@@ -855,6 +855,7 @@ process_arguments (int argc, char **argv)
855 break; 855 break;
856 case 'R': /* regex */ 856 case 'R': /* regex */
857 cflags = REG_ICASE; 857 cflags = REG_ICASE;
858 // fall through
858 case 'r': /* regex */ 859 case 'r': /* regex */
859 cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE; 860 cflags |= REG_EXTENDED | REG_NOSUB | REG_NEWLINE;
860 strncpy (regex_expect, optarg, sizeof (regex_expect) - 1); 861 strncpy (regex_expect, optarg, sizeof (regex_expect) - 1);