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:
parent
af24dd0170
commit
0b538034b3
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user