1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-29 15:31:28 +02:00

fix a sizeof() to strlen()

This commit is contained in:
Sven Wischnowsky 2001-04-25 09:05:10 +00:00
parent 8baeec4637
commit f18218f2ad
2 changed files with 5 additions and 1 deletions

@ -78,6 +78,10 @@
typeset_single() calls setsparam() in some circumstances; drop a
redundant isident() test.
2001-04-25 Sven Wischnowsky <wischnow@zsh.org>
* ?????: Src/Zle/computil.c: fix a sizeof() to strlen(). ahem.
2001-04-19 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
* 14046: Doc/Zle/zle.yo, Src/Zle/zle_keymap.c: bindkey -rp removes

@ -3261,7 +3261,7 @@ cfp_opt_pats(char **pats, char *matcher)
if (haswilds(t))
return;
}
add = (char *) zhalloc(sizeof(compprefix) * 2 + 1);
add = (char *) zhalloc(strlen(compprefix) * 2 + 1);
for (s = compprefix, t = add; *s; s++) {
if (*s != '\\' || !s[1] || s[1] == '*' || s[1] == '?' ||
s[1] == '<' || s[1] == '>' || s[1] == '(' || s[1] == ')' ||