X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsnmp_agent_test.c;h=581f33d3b10923c29921d98144d094ec33c138c3;hb=965115a9ec6d4beaea5c6c1483176b80445c5f96;hp=bd500fcef226f352335626d7ebb15db2d965222a;hpb=0a18c82ec8c41db8eea0fd2cf55f44bdab6e0137;p=collectd.git diff --git a/src/snmp_agent_test.c b/src/snmp_agent_test.c index bd500fce..581f33d3 100644 --- a/src/snmp_agent_test.c +++ b/src/snmp_agent_test.c @@ -145,9 +145,9 @@ DEF_TEST(format_name_regex_index) { snmp_varlist_add_variable(&index_list_tmp, NULL, 0, ASN_OCTET_STR, (const u_char *)plugin_inst, strlen(plugin_inst)); snmp_varlist_add_variable(&index_list_tmp, NULL, 0, ASN_INTEGER, - (const u_char *)&vcpu, 1); + (const u_char *)&vcpu, sizeof(vcpu)); snmp_varlist_add_variable(&index_list_tmp, NULL, 0, ASN_INTEGER, - (const u_char *)&cpu, 1); + (const u_char *)&cpu, sizeof(cpu)); build_oid_noalloc(index_oid.oid, sizeof(index_oid.oid), &index_oid.oid_len, NULL, 0, index_list_tmp);