diff --git a/graphics/grTOGL1.c b/graphics/grTOGL1.c index 400878b8..c518bb55 100644 --- a/graphics/grTOGL1.c +++ b/graphics/grTOGL1.c @@ -1539,7 +1539,7 @@ GrTOGLIconUpdate(w,text) /* See Blt code */ XSetClassHint( grXdpy, wind, &class); if (text) { - if ((brack = strchr(text,'['))) + if ((brack = strchr(text,'[')) && brack != text) { brack--; *brack = 0;