incubator-celix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From abroekh...@apache.org
Subject svn commit: r1210849 - /incubator/celix/trunk/framework/private/src/manifest.c
Date Tue, 06 Dec 2011 10:26:34 GMT
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);



Mime
View raw message