Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 26234 invoked from network); 8 Jul 2009 12:50:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jul 2009 12:50:47 -0000 Received: (qmail 23119 invoked by uid 500); 8 Jul 2009 12:50:57 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 23092 invoked by uid 500); 8 Jul 2009 12:50:57 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 23083 invoked by uid 99); 8 Jul 2009 12:50:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 12:50:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jul 2009 12:50:55 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8A77623888D4; Wed, 8 Jul 2009 12:50:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@harmony.apache.org From: odeakin@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090708125035.8A77623888D4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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';