From 13c5af6b35e9dfd5ff51e9a7eb1fa7cc8ee95909 Mon Sep 17 00:00:00 2001 From: dgp Date: Tue, 9 Aug 2005 04:17:38 +0000 Subject: added nul-termination missing from earlier commit today --- generic/tclPathObj.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v0.12