summaryrefslogtreecommitdiffstats
path: root/generic/tclParse.c
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2011-03-06 05:19:11 (GMT)
committerdgp@users.sourceforge.net <dgp>2011-03-06 05:19:11 (GMT)
commit03443ea07ec13ca7a87c07c602107c8d3bba6058 (patch)
tree42636281a94594606537c4aec3af5040b56b9a28 /generic/tclParse.c
parent1acef870ce0e0cf57797bb424bc426048560cd20 (diff)
parent7de51481a69749470f9158e469952320f132e9d2 (diff)
downloadtcl-03443ea07ec13ca7a87c07c602107c8d3bba6058.zip
tcl-03443ea07ec13ca7a87c07c602107c8d3bba6058.tar.gz
tcl-03443ea07ec13ca7a87c07c602107c8d3bba6058.tar.bz2
merge
Diffstat (limited to 'generic/tclParse.c')
-rw-r--r--generic/tclParse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclParse.c b/generic/tclParse.c
index 42b8a20..963fad6 100644
--- a/generic/tclParse.c
+++ b/generic/tclParse.c
@@ -851,7 +851,7 @@ TclParseBackslash(
result = 0xb;
break;
case 'x':
- count += TclParseHex(p+1, numBytes-1, &result);
+ count += TclParseHex(p+1, numBytes-2, &result);
if (count == 2) {
/*
* No hexadigits -> This is just "x".
@@ -866,7 +866,7 @@ TclParseBackslash(
}
break;
case 'u':
- count += TclParseHex(p+1, (numBytes > 5) ? 4 : numBytes-1, &result);
+ count += TclParseHex(p+1, (numBytes > 5) ? 4 : numBytes-2, &result);
if (count == 2) {
/*
* No hexadigits -> This is just "u".