48d497b991b74998ee79dfb1276235b0930863be
angie
  Tue May 31 09:43:07 2022 -0700
Increase hardcoded line size limit in linefile.c; the Newick-formatted SARS-CoV-2 tree with 10 million sequences breaks this limit.  If/when we approach 20 million this may need to be redoubled.

diff --git src/lib/linefile.c src/lib/linefile.c
index d5e904f..9c951a3 100644
--- src/lib/linefile.c
+++ src/lib/linefile.c
@@ -630,31 +630,31 @@
 	{
 	lf->bytesInBuf = lf->lineStart = lf->lineEnd = 0;
 	return FALSE;
 	}
     else
         endIx = sizeLeft;
 
     bytesInBuf = lf->bytesInBuf = readSize + sizeLeft;
     lf->lineEnd = 0;
 
     determineNlType(lf, buf+endIx, bytesInBuf-endIx);
     gotLf = findNextNewline(lf, buf, bytesInBuf, &endIx);
 
     if (!gotLf && bytesInBuf == lf->bufSize)
         {
-	if (bufSize >= 512*1024*1024)
+	if (bufSize >= 1024*1024*1024)
 	    {
 	    errAbort("Line too long (more than %d chars) line %d of %s",
 		lf->bufSize, lf->lineIx+1, lf->fileName);
 	    }
 	else
 	    {
 	    lineFileExpandBuf(lf, bufSize*2);
 	    buf = lf->buf;
 	    }
 	}
     }
 
 if (lf->zTerm)
     {
     buf[endIx-1] = 0;