summaryrefslogtreecommitdiffstats
path: root/generic/tkConfig.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-23 09:55:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-23 09:55:01 (GMT)
commit8c01d5fea4cbdd448a644bfaf18e9dfc96843b61 (patch)
tree38796a80f2a9ec50b88ff82ff70a61a03abd3ca2 /generic/tkConfig.c
parent668875a4157628ad8e22c8873000773a5456a778 (diff)
downloadtk-8c01d5fea4cbdd448a644bfaf18e9dfc96843b61.zip
tk-8c01d5fea4cbdd448a644bfaf18e9dfc96843b61.tar.gz
tk-8c01d5fea4cbdd448a644bfaf18e9dfc96843b61.tar.bz2
Add more implicit type-casts. Backported from 8.7
Diffstat (limited to 'generic/tkConfig.c')
-rw-r--r--generic/tkConfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkConfig.c b/generic/tkConfig.c
index 8381a0a..6a0ffd8 100644
--- a/generic/tkConfig.c
+++ b/generic/tkConfig.c
@@ -664,7 +664,7 @@ DoObjConfig(
if (internalPtr != NULL) {
if (valuePtr != NULL) {
value = Tcl_GetStringFromObj(valuePtr, &length);
- newStr = ckalloc(length + 1);
+ newStr = (char *)ckalloc(length + 1);
strcpy(newStr, value);
} else {
newStr = NULL;