diff options
author | dgp <dgp@users.sourceforge.net> | 2020-03-09 18:26:22 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2020-03-09 18:26:22 (GMT) |
commit | 698cd1f919d5cdd4ebc32555258e623c69d6178b (patch) | |
tree | 7fe4bcf2aae44b100e0d362292dc43f217ca2b7d /unix/tkUnixFont.c | |
parent | 2b48aa9710925f84b5ffac8a3682df9e3a7994ed (diff) | |
download | tk-698cd1f919d5cdd4ebc32555258e623c69d6178b.zip tk-698cd1f919d5cdd4ebc32555258e623c69d6178b.tar.gz tk-698cd1f919d5cdd4ebc32555258e623c69d6178b.tar.bz2 |
Revert a constification that broke the X build on OSX.
Diffstat (limited to 'unix/tkUnixFont.c')
-rw-r--r-- | unix/tkUnixFont.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/unix/tkUnixFont.c b/unix/tkUnixFont.c index cfeed1b..d95527b 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; @@ -848,7 +848,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) { |