diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-25 09:05:10 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-25 09:05:10 +0000 |
commit | f18218f2ad55a31ce10b349b4a87556c84b019d2 (patch) | |
tree | a07a239b7bbb6a22cef530fa3b10fdf299da6bec /Src/Zle | |
parent | 8baeec4637c8d4cdeec63c6f023766e22afa6a48 (diff) | |
download | zsh-f18218f2ad55a31ce10b349b4a87556c84b019d2.tar.gz zsh-f18218f2ad55a31ce10b349b4a87556c84b019d2.tar.xz zsh-f18218f2ad55a31ce10b349b4a87556c84b019d2.zip |
fix a sizeof() to strlen()
Diffstat (limited to 'Src/Zle')
-rw-r--r-- | Src/Zle/computil.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 6bc7acbc8..e927081f7 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -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] == ')' || |