Author: damjan
Date: Sun Apr 15 15:00:46 2018
New Revision: 1829211

URL: http://svn.apache.org/viewvc?rev=1829211&view=rev
Log:
Allow the Java version suffix (eg. the 162 in 1.8.0_162) to be
3 digits long.

Patch by: me


Modified:
    openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx

Modified: openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx
URL: 
http://svn.apache.org/viewvc/openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx?rev=1829211&r1=1829210&r2=1829211&view=diff
==============================================================================
--- openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx 
(original)
+++ openoffice/trunk/main/jvmfwk/plugins/sunmajor/pluginlib/sunversion.cxx Sun 
Apr 15 15:00:46 2018
@@ -144,8 +144,9 @@ bool SunVersion::init(const char *szVers
                 if ( ! isdigit(*pCur))
                 {
                     //1.4.1_01-, 1.4.1_01a, the numerical part may only be 2 
chars.
+                    //1.7.0_161, 1.8.0_162, it's as long as 3 chars in later 
Java version.
                     int len = pCur - pLast;
-                    if (len > 2)
+                    if (len > 3)
                         return false;
                     //we've got the update: 01, 02 etc
                     strncpy(buf, pLast, len);


Reply via email to