Blame SOURCES/net-snmp-5.7.2-pass_common.patch

4afbb4
diff -urNp old/agent/mibgroup/ucd-snmp/pass_common.c new/agent/mibgroup/ucd-snmp/pass_common.c
4afbb4
--- old/agent/mibgroup/ucd-snmp/pass_common.c	2019-04-03 11:09:47.957025775 +0200
4afbb4
+++ new/agent/mibgroup/ucd-snmp/pass_common.c	2019-04-03 11:27:04.133155491 +0200
d81ece
@@ -250,15 +250,15 @@ netsnmp_internal_pass_set_format(char *b
d81ece
             sprintf(buf, "string \"\"\n");
d81ece
         else if (netsnmp_internal_bin2asc(buf2, var_val_len) ==
d81ece
                  (int) var_val_len)
d81ece
-            snprintf(buf, sizeof(buf), "string \"%s\"\n", buf2);
d81ece
+            snprintf(buf, SNMP_MAXBUF, "string \"%s\"\n", buf2);
d81ece
         else
d81ece
-            snprintf(buf, sizeof(buf), "octet \"%s\"\n", buf2);
d81ece
-        buf[ sizeof(buf)-1 ] = 0;
d81ece
+            snprintf(buf, SNMP_MAXBUF, "octet \"%s\"\n", buf2);
d81ece
+        buf[ SNMP_MAXBUF-1 ] = 0;
d81ece
         break;
d81ece
     case ASN_OBJECT_ID:
d81ece
         sprint_mib_oid(buf2, (const oid *) var_val, var_val_len/sizeof(oid));
d81ece
-        snprintf(buf, sizeof(buf), "objectid \"%s\"\n", buf2);
d81ece
-        buf[ sizeof(buf)-1 ] = 0;
d81ece
+        snprintf(buf, SNMP_MAXBUF, "objectid \"%s\"\n", buf2);
d81ece
+        buf[ SNMP_MAXBUF-1 ] = 0;
d81ece
         break;
d81ece
     }
d81ece
 }