From c4a2a54cb77aea8ce8f09c23f5afd12b8ac6ec99 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Sat, 15 Feb 2025 22:20:50 -0500 Subject: [PATCH] Corrected a syntax error in the old (non-Tcl/Tk) grX11su1.c code that was introduced with a slew of updates back in October, as noticed and reported (with solution) by J. Schonberg. --- graphics/grX11su1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graphics/grX11su1.c b/graphics/grX11su1.c index 1b0720e3..897552f4 100644 --- a/graphics/grX11su1.c +++ b/graphics/grX11su1.c @@ -1443,7 +1443,7 @@ GrX11IconUpdate(w,text) XSetClassHint( grXdpy, wind, &class); if (text == NULL) return; - if ((brack = strchr(text,'[')) brack != text) + if ((brack = strchr(text,'[')) && (brack != text)) { brack--; *brack = 0;