Blame SOURCES/net-snmp-5.5-extTable-crash.patch

8a419f
diff -up net-snmp-5.7.2/agent/mibgroup/agent/extend.c.orig net-snmp-5.7.2/agent/mibgroup/agent/extend.c
8a419f
--- net-snmp-5.7.2/agent/mibgroup/agent/extend.c.orig	2013-07-09 17:12:14.169821974 +0200
8a419f
+++ net-snmp-5.7.2/agent/mibgroup/agent/extend.c	2013-07-09 17:12:39.885729685 +0200
8a419f
@@ -1463,8 +1463,8 @@ char * _get_cmdline(netsnmp_extend *exte
8a419f
     if (args == NULL)
8a419f
         /* Use empty string for processes without arguments. */
8a419f
         args = "";
8a419f
-    
8a419f
-    size = strlen(extend->command) + strlen(extend->args) + 2;
8a419f
+
8a419f
+    size = strlen(extend->command) + strlen(args) + 2;
8a419f
     if (size > cmdlinesize) {
8a419f
         newbuf = realloc(cmdlinebuf, size);
8a419f
 	if (!newbuf) {