Marvin Humphrey wrote on 11/14/09 2:48 PM:

> Also, maybe there's something weird with the realloc?
> 
>      self->inc_dirs = realloc(self->inc_dirs, num_dirs + 1);
> 
> Yeah, that's probably a problem.  Should be a "* sizeof(char*)" multiplier in
> there, methinks.

yes, that's exactly it. When I change it to:

 self->inc_dirs = realloc(self->inc_dirs, (num_dirs + 1)*sizeof(char*));

then it works just fine.

I committed the patch as r5494 to KinoSearch svn. Does a similar patch need to
go into the Lucy Charmonizer tree? (On that note, could we set up KS svn to pull
Charmonizer as an svn:externals dep? [0])

[0] http://www.linxit.de/svnbook/en/1.0/ch07s03.html

-- 
Peter Karman  .  http://peknet.com/  .  [email protected]

Reply via email to