1
0
monitoring-plugins/monitoring-plugins.check_snmp.arrayaddress.patch

14 lines
543 B
Diff
Raw Normal View History

2015-10-26 17:38:39 +01:00
Index: monitoring-plugins-2.1.2/plugins/check_snmp.c
===================================================================
2015-10-26 17:38:39 +01:00
--- monitoring-plugins-2.1.2.orig/plugins/check_snmp.c
+++ monitoring-plugins-2.1.2/plugins/check_snmp.c
@@ -566,7 +566,7 @@ main (int argc, char **argv)
len = sizeof(perfstr)-strlen(perfstr)-1;
strncat(perfstr, show, len>ptr-show ? ptr-show : len);
- if (type)
+ if (type[0])
strncat(perfstr, type, sizeof(perfstr)-strlen(perfstr)-1);
strncat(perfstr, " ", sizeof(perfstr)-strlen(perfstr)-1);
}