summaryrefslogtreecommitdiffstats
path: root/generic/tclUtil.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tclUtil.c')
-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;
}