mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
18569: pointer error with ${(on)...}
This commit is contained in:
parent
f473fac946
commit
46557b1e1c
@ -1,5 +1,8 @@
|
||||
2003-05-22 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 18569: Src/subst.c: error with numeric sorting of parameters;
|
||||
owing to typo pointers could become corrupt.
|
||||
|
||||
* 18559, 18562: README, Doc/Zsh/mod_socket.yo, Doc/Zsh/mod_tcp.yo,
|
||||
Doc/Zsh/zle.yo, Src/zsh.h, Src/Modules/files.c,
|
||||
Src/Modules/socket.c, Src/Modules/tcp.c Src/Zle/zle_keymap.c
|
||||
|
@ -554,7 +554,7 @@ nstrpcmp(const void *a, const void *b)
|
||||
cmp = (int)STOUC(*c) - (int)STOUC(*d);
|
||||
#endif
|
||||
if (idigit(*c) || idigit(*d)) {
|
||||
for (; c > *(char **)b && idigit(c[-1]); c--, d--);
|
||||
for (; c > *(char **)a && idigit(c[-1]); c--, d--);
|
||||
if (idigit(*c) && idigit(*d)) {
|
||||
while (*c == '0')
|
||||
c++;
|
||||
|
Loading…
Reference in New Issue
Block a user