summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2014-10-31 10:57:25 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2014-10-31 10:57:25 (GMT)
commit384950b6d12f0e3d0da23ed08707b41eb609c9cd (patch)
treed2a0ef44651690aaaaed1e88c3953ccf43ef88b7 /win
parentf6161cafab22785e5a346b26bd0ef59cdb950c57 (diff)
downloadtcl-384950b6d12f0e3d0da23ed08707b41eb609c9cd.zip
tcl-384950b6d12f0e3d0da23ed08707b41eb609c9cd.tar.gz
tcl-384950b6d12f0e3d0da23ed08707b41eb609c9cd.tar.bz2
Extend WinIsReserved() to recognize COM[5-9]: as valid com ports as well.
Diffstat (limited to 'win')
-rw-r--r--win/tclWinFile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 163050e..7487022 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -1225,9 +1225,9 @@ WinIsReserved(
if ((path[0] == 'c' || path[0] == 'C')
&& (path[1] == 'o' || path[1] == 'O')) {
if ((path[2] == 'm' || path[2] == 'M')
- && path[3] >= '1' && path[3] <= '4') {
+ && path[3] >= '1' && path[3] <= '9') {
/*
- * May have match for 'com[1-4]:?', which is a serial port.
+ * May have match for 'com[1-9]:?', which is a serial port.
*/
if (path[4] == '\0') {