diff options
-rw-r--r-- | usr.bin/doscmd/cwd.c | 4 | ||||
-rw-r--r-- | usr.bin/doscmd/doscmd.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/doscmd/cwd.c b/usr.bin/doscmd/cwd.c index a90c2bb..ef5635f 100644 --- a/usr.bin/doscmd/cwd.c +++ b/usr.bin/doscmd/cwd.c @@ -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; } } diff --git a/usr.bin/doscmd/doscmd.c b/usr.bin/doscmd/doscmd.c index 4340731..e8b3482 100644 --- a/usr.bin/doscmd/doscmd.c +++ b/usr.bin/doscmd/doscmd.c @@ -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); |