You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by ab...@apache.org on 2011/12/06 11:26:34 UTC

svn commit: r1210849 - /incubator/celix/trunk/framework/private/src/manifest.c

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