From 1a20b82fb386c6b944ff3d78e206db223313c151 Mon Sep 17 00:00:00 2001 From: wart Date: Thu, 17 Jun 1999 01:03:28 +0000 Subject: Cast third argument of Tcl_DStringAppend to (int) value in case the strlen() function returned a different type. --- generic/tkConsole.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generic/tkConsole.c b/generic/tkConsole.c index adae241..b534be1 100644 --- a/generic/tkConsole.c +++ b/generic/tkConsole.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: tkConsole.c,v 1.8 1999/06/17 00:39:18 wart Exp $ + * RCS: @(#) $Id: tkConsole.c,v 1.9 1999/06/17 01:03:28 wart Exp $ */ #include "tk.h" @@ -700,7 +700,7 @@ TkConsolePrint(interp, devId, buffer, size) Tcl_DStringAppend(&output, buffer, size); Tcl_DStringInit(&command); - Tcl_DStringAppend(&command, cmd, strlen(cmd)); + Tcl_DStringAppend(&command, cmd, (int) strlen(cmd)); Tcl_DStringAppendElement(&command, output.string); consoleInterp = info->consoleInterp; -- cgit v0.12