Return-Path: X-Original-To: apmail-incubator-celix-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-celix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7DAD59A1E for ; Tue, 6 Dec 2011 10:26:56 +0000 (UTC) Received: (qmail 40802 invoked by uid 500); 6 Dec 2011 10:26:56 -0000 Delivered-To: apmail-incubator-celix-commits-archive@incubator.apache.org Received: (qmail 40785 invoked by uid 500); 6 Dec 2011 10:26:56 -0000 Mailing-List: contact celix-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: celix-dev@incubator.apache.org Delivered-To: mailing list celix-commits@incubator.apache.org Received: (qmail 40778 invoked by uid 99); 6 Dec 2011 10:26:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Dec 2011 10:26:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.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; Tue, 06 Dec 2011 10:26:55 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 6DEAE23889E7; Tue, 6 Dec 2011 10:26:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1210849 - /incubator/celix/trunk/framework/private/src/manifest.c Date: Tue, 06 Dec 2011 10:26:34 -0000 To: celix-commits@incubator.apache.org From: abroekhuis@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20111206102634.6DEAE23889E7@eris.apache.org> Author: abroekhuis Date: Tue Dec 6 10:26:34 2011 New Revision: 1210849 URL: http://svn.apache.org/viewvc?rev=1210849&view=rev Log: Bugfix in manifest parser. Modified: incubator/celix/trunk/framework/private/src/manifest.c Modified: incubator/celix/trunk/framework/private/src/manifest.c URL: http://svn.apache.org/viewvc/incubator/celix/trunk/framework/private/src/manifest.c?rev=1210849&r1=1210848&r2=1210849&view=diff ============================================================================== --- incubator/celix/trunk/framework/private/src/manifest.c (original) +++ incubator/celix/trunk/framework/private/src/manifest.c Tue Dec 6 10:26:34 2011 @@ -223,6 +223,7 @@ celix_status_t manifest_readAttributes(M int newlen = len - i; lastLine = (char *) malloc(newlen + 1); lastLine = strncpy(lastLine, lbuf+i, len -i); + lastLine[newlen] = '\0'; continue; } value = (char *) malloc((len + 1) - i);