summaryrefslogtreecommitdiff
path: root/glob/glob.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>1999-09-11 05:44:53 +0000
committerPaul Smith <psmith@gnu.org>1999-09-11 05:44:53 +0000
commitb88c1d3a3db2d8d3381fe423edd7bd794f7cb21a (patch)
tree68b837ce83b7fed701b2c4228f37b4d8ac481352 /glob/glob.c
parent373dbb43da6bce449b3443c3dee412e4fb791f69 (diff)
downloadgunmake-b88c1d3a3db2d8d3381fe423edd7bd794f7cb21a.tar.gz
* Various cleanups for release.
Diffstat (limited to 'glob/glob.c')
-rw-r--r--glob/glob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/glob/glob.c b/glob/glob.c
index 1ab5d8b..65055fb 100644
--- a/glob/glob.c
+++ b/glob/glob.c
@@ -1105,7 +1105,7 @@ prefix_array (dirname, array, n)
#if defined __MSDOS__ || defined WINDOWS32
else if (dirlen > 1)
{
- if (dirname[dirlen - 1] == '/')
+ if (dirname[dirlen - 1] == '/' && dirname[dirlen - 2] == ':')
/* DIRNAME is "d:/". Don't prepend the slash from DIRNAME. */
--dirlen;
else if (dirname[dirlen - 1] == ':')