summaryrefslogtreecommitdiff
path: root/dev-lang/tk/files/tk-8.6.17-glibc-2.43.patch
blob: 03c019c003a65193d1aa04b15eedd8b94a9a5724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
https://bugs.gentoo.org/969309
https://gitlab.exherbo.org/exherbo/arbor/-/commit/a0a2deee48fa9377913aef8ddb2ee70f70b9e120
https://core.tcl-lang.org/tk/info/c07d5817bada4c9b
--- a/unix/tkUnixFont.c	
+++ b/unix/tkUnixFont.c	
@@ -2142,11 +2142,11 @@
      */
 
     nameList = ListFonts(fontPtr->display, "*", &numNames);
     for (i = 0; i < numNames; i++) {
 	fallback = strchr(nameList[i] + 1, '-') + 1;
-	strchr(fallback, '-')[0] = '\0';
+	strchr((char *)fallback, '-')[0] = '\0';
 	if (SeenName(fallback, &ds) == 0) {
 	    subFontPtr = CanUseFallback(fontPtr, fallback, ch,
 		    fixSubFontPtrPtr);
 	    if (subFontPtr != NULL) {
 		XFreeFontNames(nameList);