6961123: setWMClass fails to null-terminate WM_CLASS string

Reviewed-by: serb
This commit is contained in:
Omair Majid 2015-12-29 10:40:43 -05:00
parent 344d4a5fc5
commit 089bc71081

View File

@ -691,7 +691,7 @@ public class XBaseWindow {
XToolkit.awtLock();
try {
XAtom xa = XAtom.get(XAtom.XA_WM_CLASS);
xa.setProperty8(getWindow(), cl[0] + '\0' + cl[1]);
xa.setProperty8(getWindow(), cl[0] + '\0' + cl[1] + '\0');
} finally {
XToolkit.awtUnlock();
}