pkgsrc/net/net-snmp/patches/patch-aq

12 lines
464 B
Text

$NetBSD: patch-aq,v 1.2 2011/05/31 10:52:31 adam Exp $
--- agent/auto_nlist.c.orig 2011-04-27 11:31:53.000000000 +0000
+++ agent/auto_nlist.c
@@ -73,7 +73,6 @@ auto_nlist_value(const char *string)
#if !(defined(aix4) || defined(aix5) || defined(aix6) || defined(aix7))
if (it->nl[0].n_type == 0) {
strcpy(it->nl[0].n_name, string);
- it->nl[0].n_name[strlen(string)+1] = '\0';
init_nlist(it->nl);
}
#endif