diff options
author | dgp <dgp@users.sourceforge.net> | 2005-08-09 04:17:38 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2005-08-09 04:17:38 (GMT) |
commit | 13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909 (patch) | |
tree | dfe72d7cb8a515f96f1b0704921995a83d2316ea /generic/tclPathObj.c | |
parent | 1867a443a7465499ed1ac544e3d9d8a2b547843b (diff) | |
download | tcl-13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909.zip tcl-13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909.tar.gz tcl-13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909.tar.bz2 |
added nul-termination missing from earlier commit today
Diffstat (limited to 'generic/tclPathObj.c')
-rw-r--r-- | generic/tclPathObj.c | 3 |
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; } |