You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by od...@apache.org on 2009/07/08 14:50:35 UTC

svn commit: r792123 - /harmony/enhanced/classlib/trunk/modules/luni/src/main/native/launcher/shared/main.c

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';