summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-05 18:23:49 +0000
committerChristopher Faylor <me@cgf.cx>2001-10-05 18:23:49 +0000
commit3cf6936e3bace15bdac5654688ea08c110774aa3 (patch)
tree09903139991453d07ff6499963c200bbb9797ad4 /winsup/cygwin/path.cc
parent547d07cae88222ad22f512b9fb9b4ab779194f93 (diff)
downloadcygnal-3cf6936e3bace15bdac5654688ea08c110774aa3.tar.gz
cygnal-3cf6936e3bace15bdac5654688ea08c110774aa3.tar.bz2
cygnal-3cf6936e3bace15bdac5654688ea08c110774aa3.zip
* path.cc (get_raw_device_number): Correct length arguments for wdeveqn.
Diffstat (limited to 'winsup/cygwin/path.cc')
-rw-r--r--winsup/cygwin/path.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc
index 25d086fbf..1688f086e 100644
--- a/winsup/cygwin/path.cc
+++ b/winsup/cygwin/path.cc
@@ -849,7 +849,7 @@ get_raw_device_number (const char *unix_path, const char *w32_path, int &unit)
{
int devn;
w32_path += 4;
- if (wdeveqn ("tape", 8))
+ if (wdeveqn ("tape", 4))
{
unit = digits (w32_path + 4);
// norewind tape devices have leading n in name
@@ -862,7 +862,7 @@ get_raw_device_number (const char *unix_path, const char *w32_path, int &unit)
unit = cyg_tolower (w32_path[0]) - 'a';
devn = FH_FLOPPY;
}
- else if (wdeveqn ("physicaldrive", 17))
+ else if (wdeveqn ("physicaldrive", 13))
{
unit = digits (w32_path + 13) + 128;
devn = FH_FLOPPY;