summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2011-07-19 19:26:32 (GMT)
committerdgp <dgp@users.sourceforge.net>2011-07-19 19:26:32 (GMT)
commit66bf88283d33ff4538e807214de979b630e80158 (patch)
treed74bdd8ad542645ce1e26868e9057de02e70b176 /generic
parentc4e6823834ff315ac0cbc1dab5f3749482696aab (diff)
downloadtcl-66bf88283d33ff4538e807214de979b630e80158.zip
tcl-66bf88283d33ff4538e807214de979b630e80158.tar.gz
tcl-66bf88283d33ff4538e807214de979b630e80158.tar.bz2
3371644 Repair failure to properly handle (length == -1) in TclConvertElement().
Diffstat (limited to 'generic')
-rw-r--r--generic/tclUtil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclUtil.c b/generic/tclUtil.c
index f5c2926..eaa7eae 100644
--- a/generic/tclUtil.c
+++ b/generic/tclUtil.c
@@ -1253,7 +1253,7 @@ int TclConvertElement(
p[1] = '#';
p += 2;
src++;
- length--;
+ length -= (length > 0);
} else {
conversion = CONVERT_BRACE;
}