lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r886294 - /lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c
Date Wed, 02 Dec 2009 20:04:57 GMT
Author: marvin
Date: Wed Dec  2 20:04:56 2009
New Revision: 886294

URL: http://svn.apache.org/viewvc?rev=886294&view=rev
Log:
Fix an inadequate memory allocation in Charmonizer/Probe/LargeFiles.c.

Modified:
    lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c

Modified: lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c
URL: http://svn.apache.org/viewvc/lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c?rev=886294&r1=886293&r2=886294&view=diff
==============================================================================
--- lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c (original)
+++ lucene/lucy/trunk/charmonizer/src/Charmonizer/Probe/LargeFiles.c Wed Dec  2 20:04:56 2009
@@ -261,7 +261,7 @@
     FILE *truncating_fh;
     size_t needed = strlen(create_bigfile_code_a)
                   + strlen(fseek_command)
-                  + strlen(create_bigfile_code_a)
+                  + strlen(create_bigfile_code_b)
                   + 10;
     char *code_buf = (char*)malloc(needed);
 



Mime
View raw message