1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

26583: use HOOK_FUNCTIONS more widely

This commit is contained in:
Peter Stephenson 2009-02-19 10:12:37 +00:00
parent 6d52e0ae1a
commit 64d011185a
4 changed files with 16 additions and 4 deletions

View file

@ -1174,8 +1174,6 @@ callhookfunc(char *name, LinkList lnklst, int arrayp, int *retval)
if (arrayp) {
char **arrptr;
int namlen = strlen(name);
#define HOOK_SUFFIX "_functions"
#define HOOK_SUFFIX_LEN 11 /* including NUL byte */
VARARR(char, arrnam, namlen + HOOK_SUFFIX_LEN);
memcpy(arrnam, name, namlen);
memcpy(arrnam + namlen, HOOK_SUFFIX, HOOK_SUFFIX_LEN);