mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
fix a sizeof() to strlen()
This commit is contained in:
parent
8baeec4637
commit
f18218f2ad
@ -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] == ')' ||
|
||||
|
Loading…
Reference in New Issue
Block a user