1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-22 00:21:27 +01:00

Apple opensource patches suggested by Jun T. in 27300

This commit is contained in:
Peter Stephenson 2009-09-30 20:32:18 +00:00
parent 8c4c4660bf
commit 500431077b
3 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,11 @@
2009-09-30 Peter Stephenson <p.w.stephenson@ntlworld.com>
* http://www.opensource.apple.com/source/zsh/zsh-53/patches/utils.c.patch:
Src/utils.c: fix length of search when spell checking.
* http://www.opensource.apple.com/source/zsh/zsh-53/patches/PR-6370391.patch:
Src/jobs.c: fix error message.
2009-09-29 Peter Stephenson <p.w.stephenson@ntlworld.com>
* Jun T.: 27296: configure.ac: bad preprocessing of Mac OS
@ -12225,5 +12233,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4789 $
* $Revision: 1.4790 $
*****************************************************

View file

@ -2113,7 +2113,7 @@ bin_kill(char *nam, char **argv, UNUSED(Options ops), UNUSED(int func))
}
sig = zstrtol(*argv, &endp, 10);
if (*endp) {
zwarnnam(nam, "invalid signal number: %s", signame);
zwarnnam(nam, "invalid signal number: %s", *argv);
return 1;
}
} else {

View file

@ -3427,8 +3427,11 @@ spname(char *oldname)
* otherwise a copy of oldname with a corrected prefix is returned. *
* Rationale for this, if there ever was any, has been forgotten. */
for (;;) {
while (*old == '/')
while (*old == '/') {
if ((new - newname) >= (sizeof(newname)-1))
return NULL;
*new++ = *old++;
}
*new = '\0';
if (*old == '\0')
return newname;