summaryrefslogtreecommitdiffstats
path: root/win/tclWinSock.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2006-04-05 16:32:39 (GMT)
committerdgp <dgp@users.sourceforge.net>2006-04-05 16:32:39 (GMT)
commit50d05904e2652689f8352c49ba3ea9b256922bb0 (patch)
tree6f98b5676e330825d6971d1bfb90ced3019e59dd /win/tclWinSock.c
parent1aa54c04958fb5a081acbd1440314021b21ca394 (diff)
downloadtcl-50d05904e2652689f8352c49ba3ea9b256922bb0.zip
tcl-50d05904e2652689f8352c49ba3ea9b256922bb0.tar.gz
tcl-50d05904e2652689f8352c49ba3ea9b256922bb0.tar.bz2
* win/tclWinInit.c: More careful calls to Tcl_DStringSetLength()
* win/tclWinSock.c: to avoid creating invalid DString states. * win/tclWinDde.c: Bump to version 1.3.2. [RFE 1366195] * library/dde/pkgIndex.tcl: * library/reg/pkgIndex.tcl: Bump to registry 1.1.6 * win/tclWinReg.c: * win/configure.in: Bump package version numbers. * win/configure: autoconf 2.59
Diffstat (limited to 'win/tclWinSock.c')
-rw-r--r--win/tclWinSock.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/win/tclWinSock.c b/win/tclWinSock.c
index c2bfc2c..488618d 100644
--- a/win/tclWinSock.c
+++ b/win/tclWinSock.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: tclWinSock.c,v 1.53 2006/03/27 18:08:51 andreas_kupries Exp $
+ * RCS: @(#) $Id: tclWinSock.c,v 1.54 2006/04/05 16:32:45 dgp Exp $
*/
#include "tclWinInt.h"
@@ -2564,6 +2564,8 @@ InitializeHostName(
if (winSock.gethostname(Tcl_DStringValue(&ds),
Tcl_DStringLength(&ds)) == 0) {
Tcl_DStringSetLength(&ds, 0);
+ } else {
+ Tcl_DStringSetLength(&ds, strlen(Tcl_DStringValue(&ds)));
}
}