1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-26 22:10:45 +02:00

23682: module field renaming missed from 23665

This commit is contained in:
Peter Stephenson 2007-07-17 07:01:55 +00:00
parent 71f659dc00
commit 6ad2655802
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-07-17 Peter Stephenson <pws@csr.com>
* 23682: Src/module.c: missed cases where m->name should
be m->node.nam from 23665.
2007-07-13 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 23680: Test/C04funcdef.ztst: tests for 23671.

View File

@ -1744,12 +1744,12 @@ module_func(Module m, char *name)
#ifdef DYNAMIC_NAME_CLASH_OK
return (Module_generic_func) dlsym(m->u.handle, name);
#else /* !DYNAMIC_NAME_CLASH_OK */
VARARR(char, buf, strlen(name) + strlen(m->nam)*2 + 1);
VARARR(char, buf, strlen(name) + strlen(m->node.nam)*2 + 1);
char const *p;
char *q;
strcpy(buf, name);
q = strchr(buf, 0);
for(p = m->nam; *p; p++) {
for(p = m->node.nam; *p; p++) {
if(*p == '/') {
*q++ = 'Q';
*q++ = 's';