summaryrefslogtreecommitdiff
path: root/shells/bash2/patches/patch-ae
blob: d29f6b5493cfd08ee22e26245fb29120dbbd3130 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- builtins/enable.def~        Wed Oct  2 13:47:05 1996
+++ builtins/enable.def Tue May  6 14:18:09 1997
@@ -284,9 +284,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)