Make sigreturn() work properly by zeroing mc_onstack like Bruce suggested.

Restore dos_makepath() functionality to pre r1.5 days.
This commit is contained in:
jhay 1999-11-08 17:28:46 +00:00
parent af24dd0170
commit 0b538034b3
2 changed files with 3 additions and 2 deletions

View File

@ -198,7 +198,7 @@ dos_makepath(u_char *where, u_char *newpath)
u_char *np;
Path_t *d;
u_char tmppath[1024];
u_char snewpath = newpath;
u_char *snewpath = newpath;
if (where[0] != '\0' && where[1] == ':') {
drive = drlton(*where);
@ -253,7 +253,7 @@ dos_makepath(u_char *where, u_char *newpath)
} else {
if (np[-1] != '\\')
*np++ = '\\';
while (*np = *dir++ && np - snewpath < 1023)
while ((*np = *dir++) && np - snewpath < 1023)
++np;
}
}

View File

@ -258,6 +258,7 @@ main(int argc, char **argv)
sigemptyset(&uc.uc_sigmask);
sigaltstack(NULL, &uc.uc_stack);
uc.uc_mcontext.mc_onstack = 0;
if (tmode)
tracetrap(REGS);