From 37513bdf9313287dd166c52a291ce536ba2aa93d Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sat, 27 Apr 1996 00:52:30 +0000 Subject: [PATCH] (getdefdir): Include drive letter and colon when constructing default directory for drive. --- src/msdos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/msdos.c b/src/msdos.c index c90e9766579..e7df9b13f1f 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -2091,6 +2091,8 @@ getdefdir (drive, dst) { union REGS regs; + *dst++ = (drive) ? drive + 'A' - 1 : getdisk () + 'A'; + *dst++ = ':' *dst++ = '/'; regs.h.dl = drive; #if __DJGPP__ > 1 -- 2.39.2