diff options
| author | vincentdarley <vincentdarley> | 2005-03-15 22:10:29 (GMT) |
|---|---|---|
| committer | vincentdarley <vincentdarley> | 2005-03-15 22:10:29 (GMT) |
| commit | a74b680d2184f702b7827bdd194c439a7c055df7 (patch) | |
| tree | 9759059721a45033c633785996a261ee89492a82 /generic/tclFileName.c | |
| parent | 1ca08cf8046b964489e6f2336a46506d0c52076e (diff) | |
| download | tcl-a74b680d2184f702b7827bdd194c439a7c055df7.zip tcl-a74b680d2184f702b7827bdd194c439a7c055df7.tar.gz tcl-a74b680d2184f702b7827bdd194c439a7c055df7.tar.bz2 | |
more tests and a fix to bug 1158199
Diffstat (limited to 'generic/tclFileName.c')
| -rw-r--r-- | generic/tclFileName.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/generic/tclFileName.c b/generic/tclFileName.c index f87c094..4ab7fa8 100644 --- a/generic/tclFileName.c +++ b/generic/tclFileName.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclFileName.c,v 1.66 2005/03/15 18:40:58 vincentdarley Exp $ + * RCS: @(#) $Id: tclFileName.c,v 1.67 2005/03/15 22:10:29 vincentdarley Exp $ */ #include "tclInt.h" @@ -187,17 +187,20 @@ ExtractWinRoot(path, resultPtr, offset, typePtr) } } else if ((path[0] == 'p' || path[0] == 'P') && (path[1] == 'r' || path[1] == 'R') - && (path[2] == 'n' || path[2] == 'N')) { + && (path[2] == 'n' || path[2] == 'N') + && path[3] == '\0') { /* Have match for 'prn' */ abs = 3; } else if ((path[0] == 'n' || path[0] == 'N') && (path[1] == 'u' || path[1] == 'U') - && (path[2] == 'l' || path[2] == 'L')) { + && (path[2] == 'l' || path[2] == 'L') + && path[3] == '\0') { /* Have match for 'nul' */ abs = 3; } else if ((path[0] == 'a' || path[0] == 'A') && (path[1] == 'u' || path[1] == 'U') - && (path[2] == 'x' || path[2] == 'X')) { + && (path[2] == 'x' || path[2] == 'X') + && path[3] == '\0') { /* Have match for 'aux' */ abs = 3; } |
