summaryrefslogtreecommitdiffstats
path: root/generic/tclStrToD.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-30 22:02:55 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-03-30 22:02:55 (GMT)
commitdc5930bc812a27e31bf8a0aa2fcf564ed7306a26 (patch)
treecfdd8df6ed6eeb844e46e1d630692a8a6137fbb9 /generic/tclStrToD.c
parentf8b9e919c954be237c906a708530111607f88081 (diff)
parent186145578675341deb63fd53e6080896695c3574 (diff)
downloadtcl-dc5930bc812a27e31bf8a0aa2fcf564ed7306a26.zip
tcl-dc5930bc812a27e31bf8a0aa2fcf564ed7306a26.tar.gz
tcl-dc5930bc812a27e31bf8a0aa2fcf564ed7306a26.tar.bz2
Merge 8.6
Diffstat (limited to 'generic/tclStrToD.c')
-rw-r--r--generic/tclStrToD.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclStrToD.c b/generic/tclStrToD.c
index 206407e..92b2938 100644
--- a/generic/tclStrToD.c
+++ b/generic/tclStrToD.c
@@ -5341,7 +5341,7 @@ TclFormatNaN(
*buffer++ = 'N';
bitwhack.iv &= ((UINT64_C(1)) << 51) - 1;
if (bitwhack.iv != 0) {
- sprintf(buffer, "(%" PRIx64 ")", bitwhack.iv);
+ snprintf(buffer, TCL_DOUBLE_SPACE, "(%" PRIx64 ")", bitwhack.iv);
} else {
*buffer = '\0';
}