14 lines
531 B
Text
14 lines
531 B
Text
|
$NetBSD: patch-aq,v 1.1 2011/05/27 10:55:25 adam Exp $
|
||
|
|
||
|
--- agent/auto_nlist.c.orig 2011-04-27 11:31:53.000000000 +0000
|
||
|
+++ agent/auto_nlist.c
|
||
|
@@ -73,7 +73,7 @@ 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';
|
||
|
+ *(char *)(it->nl[0].n_name[strlen(string)+1]) = '\0';
|
||
|
init_nlist(it->nl);
|
||
|
}
|
||
|
#endif
|