summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2020-03-10 17:13:58 (GMT)
committerdgp <dgp@users.sourceforge.net>2020-03-10 17:13:58 (GMT)
commitdf0bc82b2b44f2f88c6c4a485d41c2c9354500d9 (patch)
tree0f7328e0814ee093c694dfa5b04b5179da3f0d50
parent1360a9336e3403d578af136fb9d0b7a4eabd57b8 (diff)
downloadtk-df0bc82b2b44f2f88c6c4a485d41c2c9354500d9.zip
tk-df0bc82b2b44f2f88c6c4a485d41c2c9354500d9.tar.gz
tk-df0bc82b2b44f2f88c6c4a485d41c2c9354500d9.tar.bz2
Fix the X11 build on OSX
-rw-r--r--unix/tkUnixFont.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixFont.c b/unix/tkUnixFont.c
index d15b1dd..897770b 100644
--- a/unix/tkUnixFont.c
+++ b/unix/tkUnixFont.c
@@ -839,7 +839,7 @@ TkpGetFontFamilies(
Tk_Window tkwin) /* For display to query. */
{
int i, new, numNames;
- const char *family, **nameList;
+ char *family, **nameList;
Tcl_HashTable familyTable;
Tcl_HashEntry *hPtr;
Tcl_HashSearch search;
@@ -850,7 +850,7 @@ TkpGetFontFamilies(
Tcl_InitHashTable(&familyTable, TCL_STRING_KEYS);
nameList = ListFonts(Tk_Display(tkwin), "*", &numNames);
for (i = 0; i < numNames; i++) {
- const char *familyEnd;
+ char *familyEnd;
family = strchr(nameList[i] + 1, '-');
if (family == NULL) {