summaryrefslogtreecommitdiffstats
path: root/generic/tkCanvText.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-25 16:51:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-01-25 16:51:53 (GMT)
commitf68672e37b0cf0667b7263dcd051ee2507c29e9d (patch)
tree3ade103f7e54f8fd0747822cc142536f249e45e4 /generic/tkCanvText.c
parent88ed02d31c9ce00e1ffa1838f89d9d46db8083cf (diff)
parent1e7f027ce99b4cc9f402608074401d3510d316ce (diff)
downloadtk-f68672e37b0cf0667b7263dcd051ee2507c29e9d.zip
tk-f68672e37b0cf0667b7263dcd051ee2507c29e9d.tar.gz
tk-f68672e37b0cf0667b7263dcd051ee2507c29e9d.tar.bz2
Merge 8.7
Diffstat (limited to 'generic/tkCanvText.c')
-rw-r--r--generic/tkCanvText.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/generic/tkCanvText.c b/generic/tkCanvText.c
index a222e48..8874803 100644
--- a/generic/tkCanvText.c
+++ b/generic/tkCanvText.c
@@ -14,6 +14,10 @@
#include "tkCanvas.h"
#include "default.h"
+#ifdef _WIN32
+#include "tkWinInt.h"
+#endif
+
/*
* The structure below defines the record for each text item.
*/
@@ -170,9 +174,9 @@ UnderlinePrintProc(
}
p = (char *)ckalloc(32);
if (underline < 0) {
- sprintf(p, "end%d", underline);
+ snprintf(p, 32, "end%d", underline);
} else {
- sprintf(p, "%d", underline);
+ snprintf(p, 32, "%d", underline);
}
*freeProcPtr = TCL_DYNAMIC;
return p;