openbsd-ports/shells/bash2/patches/patch-aa
2000-03-23 03:57:43 +00:00

17 lines
547 B
Plaintext

--- builtins/enable.def.orig Thu Mar 23 19:49:42 2000
+++ builtins/enable.def Thu Mar 23 19:50:56 2000
@@ -305,9 +305,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)