summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixThrd.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 /unix/tclUnixThrd.c
parentf8b9e919c954be237c906a708530111607f88081 (diff)
parent186145578675341deb63fd53e6080896695c3574 (diff)
downloadtcl-dc5930bc812a27e31bf8a0aa2fcf564ed7306a26.zip
tcl-dc5930bc812a27e31bf8a0aa2fcf564ed7306a26.tar.gz
tcl-dc5930bc812a27e31bf8a0aa2fcf564ed7306a26.tar.bz2
Merge 8.6
Diffstat (limited to 'unix/tclUnixThrd.c')
-rw-r--r--unix/tclUnixThrd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/tclUnixThrd.c b/unix/tclUnixThrd.c
index aa5926e..0c32b0d 100644
--- a/unix/tclUnixThrd.c
+++ b/unix/tclUnixThrd.c
@@ -827,7 +827,7 @@ TclpInetNtoa(
ThreadSpecificData *tsdPtr = TCL_TSD_INIT(&dataKey);
unsigned char *b = (unsigned char*) &addr.s_addr;
- sprintf(tsdPtr->nabuf, "%u.%u.%u.%u", b[0], b[1], b[2], b[3]);
+ snprintf(tsdPtr->nabuf, sizeof(tsdPtr->nabuf), "%u.%u.%u.%u", b[0], b[1], b[2], b[3]);
return tsdPtr->nabuf;
#else
return inet_ntoa(addr);