summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-08-09 04:17:38 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-08-09 04:17:38 (GMT)
commit13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909 (patch)
treedfe72d7cb8a515f96f1b0704921995a83d2316ea
parent1867a443a7465499ed1ac544e3d9d8a2b547843b (diff)
downloadtcl-13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909.zip
tcl-13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909.tar.gz
tcl-13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909.tar.bz2
added nul-termination missing from earlier commit today
-rw-r--r--generic/tclPathObj.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c
index 96190d0..bd94477 100644
--- a/generic/tclPathObj.c
+++ b/generic/tclPathObj.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPathObj.c,v 1.43 2005/08/08 23:20:11 vincentdarley Exp $
+ * RCS: @(#) $Id: tclPathObj.c,v 1.44 2005/08/09 04:17:38 dgp Exp $
*/
#include "tclInt.h"
@@ -609,6 +609,7 @@ TclPathPart(interp, pathPtr, portion)
if (root->bytes != NULL && root->length > 0) {
/* Have string rep as well */
root->length -= strlen(extension);
+ root->bytes[root->length] = 0;
}
return root;
}