summaryrefslogtreecommitdiffstats
path: root/generic/tkArgv.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2008-10-05 11:34:45 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2008-10-05 11:34:45 (GMT)
commit7948114a00cbb067d9fd922efbce1010bec9813e (patch)
tree3902ed875b423c3eb9023c8bdd524105846cc013 /generic/tkArgv.c
parent125c9fa123dd9ac104d0e3c4cf0908060f39b0be (diff)
downloadtk-7948114a00cbb067d9fd922efbce1010bec9813e.zip
tk-7948114a00cbb067d9fd922efbce1010bec9813e.tar.gz
tk-7948114a00cbb067d9fd922efbce1010bec9813e.tar.bz2
Backport of fix for [Bug 2112563]
Diffstat (limited to 'generic/tkArgv.c')
-rw-r--r--generic/tkArgv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkArgv.c b/generic/tkArgv.c
index 1a530b2..52ee080 100644
--- a/generic/tkArgv.c
+++ b/generic/tkArgv.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: tkArgv.c,v 1.11.2.2 2008/04/07 22:27:21 hobbs Exp $
+ * RCS: @(#) $Id: tkArgv.c,v 1.11.2.3 2008/10/05 11:34:46 dkf Exp $
*/
#include "tkInt.h"
@@ -380,7 +380,7 @@ PrintUsage(
Tcl_AppendResult(interp, "\n\t\tDefault value: ", tmp, NULL);
break;
case TK_ARGV_FLOAT:
- sprintf(tmp, "%g", *((double *) infoPtr->dst));
+ Tcl_PrintDouble(NULL, *((double *) infoPtr->dst), tmp);
Tcl_AppendResult(interp, "\n\t\tDefault value: ", tmp, NULL);
break;
case TK_ARGV_STRING: {