summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-26 14:28:50 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-09-26 14:28:50 (GMT)
commit0f0aee387281833c8e98078e6d927a9feb918574 (patch)
tree275c4e085e78016d2ead8d55e3a60ee137257054
parent234c7a84e3befe61f04019eb883e47a1b8e34f15 (diff)
parent38f8605a8d202951bbf792a4813b9b48a20910fb (diff)
downloadtcl-0f0aee387281833c8e98078e6d927a9feb918574.zip
tcl-0f0aee387281833c8e98078e6d927a9feb918574.tar.gz
tcl-0f0aee387281833c8e98078e6d927a9feb918574.tar.bz2
merge trunk
-rw-r--r--generic/tclBinary.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclBinary.c b/generic/tclBinary.c
index dd2c21e..9bbc011 100644
--- a/generic/tclBinary.c
+++ b/generic/tclBinary.c
@@ -2500,7 +2500,8 @@ BinaryEncode64(
return TCL_ERROR;
}
if (maxlen < 0) {
- Tcl_SetResult(interp, "line length out of range", TCL_STATIC);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(
+ "line length out of range", -1));
Tcl_SetErrorCode(interp, "TCL", "BINARY", "ENCODE",
"LINE_LENGTH", NULL);
return TCL_ERROR;
@@ -2606,7 +2607,8 @@ BinaryEncodeUu(
return TCL_ERROR;
}
if (lineLength < 3 || lineLength > 85) {
- Tcl_SetResult(interp, "line length out of range", TCL_STATIC);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(
+ "line length out of range", -1));
Tcl_SetErrorCode(interp, "TCL", "BINARY", "ENCODE",
"LINE_LENGTH", NULL);
return TCL_ERROR;