1
0
Fork 0
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:
Tanaka Akira 1999-09-21 01:37:26 +00:00
parent d18c1b3ac8
commit 1b60571be1
2 changed files with 13 additions and 4 deletions

View file

@ -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 &&