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;