blob: ebfacf1913560c703527c731d40acac1e47677ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
$NetBSD: patch-ae,v 1.3 1998/08/07 11:13:53 agc Exp $
--- builtins/enable.def.orig Fri Jul 18 15:55:00 1997
+++ builtins/enable.def Tue Aug 4 21:18:05 1998
@@ -290,9 +290,10 @@
name = list->word->word;
size = strlen (name);
- struct_name = xmalloc (size + 8);
- strcpy (struct_name, name);
- strcpy (struct_name + size, "_struct");
+ struct_name = xmalloc (size + 9);
+ *struct_name = '_';
+ strcpy (struct_name + 1, name);
+ strcpy (struct_name + size + 1, "_struct");
b = (struct builtin *)dlsym (handle, struct_name);
if (b == 0)
|