blob: 4711c0fc5ff69c79851da1ad03ef7d8003c5e40d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$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
|