diff options
| author | andreask@activestate.com <andreas_kupries> | 2004-07-16 22:37:27 (GMT) |
|---|---|---|
| committer | andreask@activestate.com <andreas_kupries> | 2004-07-16 22:37:27 (GMT) |
| commit | 99e95ae9aae4d606c32b1091a1c47d2b26fa9d09 (patch) | |
| tree | c7986f3031da7d7ee29058aac09ab64844831e0c /generic/tclIOCmd.c | |
| parent | 88cfedc584a0b888096a26e349f76e77bcb663fe (diff) | |
| download | tcl-99e95ae9aae4d606c32b1091a1c47d2b26fa9d09.zip tcl-99e95ae9aae4d606c32b1091a1c47d2b26fa9d09.tar.gz tcl-99e95ae9aae4d606c32b1091a1c47d2b26fa9d09.tar.bz2 | |
* generic/tclIOCmd.c (Tcl_FcopyObjCmd): Corrected a typo in the
generation of error messages and simplified by reusing data in a
variable instead of retrieving the string again. Fixes [Tcl SF Bug 835289].
Diffstat (limited to 'generic/tclIOCmd.c')
| -rw-r--r-- | generic/tclIOCmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclIOCmd.c b/generic/tclIOCmd.c index 551a41b..1c6c8ae 100644 --- a/generic/tclIOCmd.c +++ b/generic/tclIOCmd.c @@ -8,7 +8,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIOCmd.c,v 1.19 2004/07/15 20:19:30 andreas_kupries Exp $ + * RCS: @(#) $Id: tclIOCmd.c,v 1.20 2004/07/16 22:37:28 andreas_kupries Exp $ */ #include "tclInt.h" @@ -1498,7 +1498,7 @@ Tcl_FcopyObjCmd(dummy, interp, objc, objv) } if ((mode & TCL_READABLE) == 0) { Tcl_AppendStringsToObj(Tcl_GetObjResult(interp), "channel \"", - Tcl_GetString(objv[1]), + arg, "\" wasn't opened for reading", (char *) NULL); return TCL_ERROR; } @@ -1509,7 +1509,7 @@ Tcl_FcopyObjCmd(dummy, interp, objc, objv) } if ((mode & TCL_WRITABLE) == 0) { Tcl_AppendStringsToObj(Tcl_GetObjResult(interp), "channel \"", - Tcl_GetString(objv[1]), + arg, "\" wasn't opened for writing", (char *) NULL); return TCL_ERROR; } |
