mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-09 10:01:16 +02:00
fix a sizeof() to strlen()
This commit is contained in:
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
|
typeset_single() calls setsparam() in some circumstances; drop a
|
||||||
redundant isident() test.
|
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>
|
2001-04-19 Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
|
||||||
|
|
||||||
* 14046: Doc/Zle/zle.yo, Src/Zle/zle_keymap.c: bindkey -rp removes
|
* 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))
|
if (haswilds(t))
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
add = (char *) zhalloc(sizeof(compprefix) * 2 + 1);
|
add = (char *) zhalloc(strlen(compprefix) * 2 + 1);
|
||||||
for (s = compprefix, t = add; *s; s++) {
|
for (s = compprefix, t = add; *s; s++) {
|
||||||
if (*s != '\\' || !s[1] || s[1] == '*' || s[1] == '?' ||
|
if (*s != '\\' || !s[1] || s[1] == '*' || s[1] == '?' ||
|
||||||
s[1] == '<' || s[1] == '>' || s[1] == '(' || s[1] == ')' ||
|
s[1] == '<' || s[1] == '>' || s[1] == '(' || s[1] == ')' ||
|
||||||
|
|
Loading…
Reference in a new issue