mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-25 14:20:53 +01:00
zsh-workers/7950
This commit is contained in:
parent
d18c1b3ac8
commit
1b60571be1
2 changed files with 13 additions and 4 deletions
11
Src/utils.c
11
Src/utils.c
|
|
@ -752,9 +752,14 @@ checkmailpath(char **s)
|
|||
fprintf(shout, "You have new mail.\n");
|
||||
fflush(shout);
|
||||
} else {
|
||||
char *usav = underscore;
|
||||
VARARR(char, usav, underscorelen);
|
||||
int sl = strlen(*s);
|
||||
|
||||
underscore = *s;
|
||||
if (sl >= underscorelen) {
|
||||
zfree(underscore, underscorelen);
|
||||
underscore = (char *) zalloc(underscorelen = sl + 32);
|
||||
}
|
||||
strcpy(underscore, *s);
|
||||
HEAPALLOC {
|
||||
u = dupstring(u);
|
||||
if (! parsestr(u)) {
|
||||
|
|
@ -763,8 +768,8 @@ checkmailpath(char **s)
|
|||
fputc('\n', shout);
|
||||
fflush(shout);
|
||||
}
|
||||
underscore = usav;
|
||||
} LASTALLOC;
|
||||
strcpy(underscore, usav);
|
||||
}
|
||||
}
|
||||
if (isset(MAILWARNING) && st.st_atime > st.st_mtime &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue