harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odea...@apache.org
Subject svn commit: r792123 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
Date Wed, 08 Jul 2009 12:50:35 GMT
Author: odeakin
Date: Wed Jul  8 12:50:35 2009
New Revision: 792123

URL: http://svn.apache.org/viewvc?rev=792123&view=rev
Log:
Should use strncmp here, not strcmp, to just compare the start of the argument.

Modified:
    harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c

Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c?rev=792123&r1=792122&r2=792123&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c Wed
Jul  8 12:50:35 2009
@@ -860,7 +860,7 @@
            /* Ignore classpath defines for -jar */
            /* XXX -cp is accepted ??? */
            /* if user overrides bootclasspath, skip bootclasspath defines */
-           if ( (isStandaloneJar && 0 == strcmp (props[l].key, "-Djava.class.path"))
+           if ( (isStandaloneJar && 0 == strncmp (props[l].key, "-Djava.class.path",
17))
                || (ignoreBCP && 0 == strncmp (props[l].key, "-Xbootclasspath", 15))
)
            {
                props[l].key[0] = '\0';



Mime
View raw message