Blame SOURCES/6961123-pr2972-rh1339740.patch

8f84c8
# HG changeset patch
8f84c8
# User omajid
8f84c8
# Date 1451403643 18000
8f84c8
#      Tue Dec 29 10:40:43 2015 -0500
8f84c8
# Node ID 0be28a33e12dfc9ae1e4be381530643f691d351a
8f84c8
# Parent  f4c9545cd8a56a5fab74c95de3573623ba2b83c4
8f84c8
6961123, PR2972: setWMClass fails to null-terminate WM_CLASS string
8f84c8
Reviewed-by: serb
8f84c8
8f84c8
diff -r f4c9545cd8a5 -r 0be28a33e12d src/solaris/classes/sun/awt/X11/XBaseWindow.java
8f84c8
--- openjdk/jdk/src/solaris/classes/sun/awt/X11/XBaseWindow.java	Thu Aug 28 05:20:02 2014 -0700
8f84c8
+++ openjdk/jdk/src/solaris/classes/sun/awt/X11/XBaseWindow.java	Tue Dec 29 10:40:43 2015 -0500
8f84c8
@@ -673,7 +673,7 @@
8f84c8
         XToolkit.awtLock();
8f84c8
         try {
8f84c8
             XAtom xa = XAtom.get(XAtom.XA_WM_CLASS);
8f84c8
-            xa.setProperty8(getWindow(), cl[0] + '\0' + cl[1]);
8f84c8
+            xa.setProperty8(getWindow(), cl[0] + '\0' + cl[1] + '\0');
8f84c8
         } finally {
8f84c8
             XToolkit.awtUnlock();
8f84c8
         }