From c94bfd71e8bd826b16d38fcb1e6464f70b30e075 Mon Sep 17 00:00:00 2001 From: tg Date: Sun, 15 Oct 2017 20:21:51 +0000 Subject: [PATCH] apply another quickfix by komh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit really, getdrvwd should be passed an Xstring (probably with Xinit0 in the callers), especially as one caller already didn’t update ldestlen properly… (but not tonight as I’ve really got no head for that left) --- misc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misc.c b/misc.c index ae8bb2a..44b5f0d 100644 --- a/misc.c +++ b/misc.c @@ -32,7 +32,7 @@ #include #endif -__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.287 2017/10/14 20:11:30 tg Exp $"); +__RCSID("$MirOS: src/bin/mksh/misc.c,v 1.288 2017/10/15 20:21:51 tg Exp $"); #define KSH_CHVT_FLAG #ifdef MKSH_SMALL @@ -2189,6 +2189,7 @@ c_cd(const char **wp) } #ifdef MKSH_DOSPATH + tryp = NULL; if (mksh_drvltr(dir) && !mksh_cdirsep(dir[2]) && !getdrvwd(&tryp, ord(*dir))) { dir = shf_smprintf(Tf_sss, tryp,