FAQ

svn commit: r880732 - /lucene/lucy/trunk/charmonizer/src/Charmonizer/Core/Compiler.charm

Marvin
Nov 16, 2009 at 12:51 pm
Author: marvin
Date: Mon Nov 16 12:51:24 2009
New Revision: 880732

URL: http://svn.apache.org/viewvc?rev=880732&view=rev
Log:
Commit LUCY-65, fixing a bug in Charmonizer where a realloc did not request
enough memory, causing the build to break on FreeBSD 7.x.

Modified:
lucene/lucy/trunk/charmonizer/src/Charmonizer/Core/Compiler.charm

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Core/Compiler.charm
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Core/Compiler.charm?rev=880732&r1=880731&r2=880732&view=diff
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Core/Compiler.charm (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Core/Compiler.charm Mon Nov 16 12:51:24 2009
@@ -188,7 +188,7 @@
/* count up the present number of dirs, reallocate */
while (*dirs++ != NULL) { num_dirs++; }
num_dirs += 1; /* passed-in dir */
- self->inc_dirs = realloc(self->inc_dirs, num_dirs + 1);
+ self->inc_dirs = realloc(self->inc_dirs, (num_dirs + 1)*sizeof(char*));

/* put the passed-in dir at the end of the list */
self->inc_dirs[num_dirs - 1] = strdup(dir);
reply

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post

1 user in discussion

Marvin: 1 post