summaryrefslogtreecommitdiff
path: root/shells/bash2/patches/patch-ae
blob: c5d5895f924612a2fcac6c3821444d01f261e4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- 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)