lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [1/3] git commit: refs/heads/master - Fix possible memory corruption when creating Makefile
Date Sat, 04 May 2013 23:10:08 GMT
Updated Branches:
  refs/heads/master 75626953e -> 16051063a


Fix possible memory corruption when creating Makefile


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/43f565fb
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/43f565fb
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/43f565fb

Branch: refs/heads/master
Commit: 43f565fb65a872c97b59e83761b4451aca710a94
Parents: 7562695
Author: Nick Wellnhofer <wellnhofer@aevum.de>
Authored: Sun May 5 00:13:06 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@aevum.de>
Committed: Sun May 5 00:14:29 2013 +0200

----------------------------------------------------------------------
 common/charmonizer.main |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/43f565fb/common/charmonizer.main
----------------------------------------------------------------------
diff --git a/common/charmonizer.main b/common/charmonizer.main
index eeebf89..7b320af 100644
--- a/common/charmonizer.main
+++ b/common/charmonizer.main
@@ -125,7 +125,7 @@ S_source_file_callback(char *file, void *context) {
     file[file_len-2] = '\0';
 
     pattern = "%s" DIR_SEP "%s$(OBJ_EXT)";
-    obj_file_size = strlen(pattern) + file_len + 10;
+    obj_file_size = strlen(pattern) + strlen(sfc->dir) + file_len + 10;
     obj_file = (char*)malloc(obj_file_size);
     sprintf(obj_file, pattern, sfc->dir, file);
     chaz_MakeVar_append(sfc->var, obj_file);


Mime
View raw message