1b20a1774021cdcb07303801d55b7ca3fa6cff09 braney Wed Jan 8 05:54:20 2025 -0800 fix up chop functions so they don't call ArraySize with NULL diff --git src/hg/lib/liftOver.c src/hg/lib/liftOver.c index b901c5b..088a34d 100644 --- src/hg/lib/liftOver.c +++ src/hg/lib/liftOver.c @@ -1298,31 +1298,31 @@ { struct lineFile *lf = lineFileOpen(fileName, TRUE); int wordCount; int bedFieldCount = bedPlus; char *line; int ct = 0; if (lineFileNextReal(lf, &line)) { line = cloneString(line); if (tabSep) { wordCount = chopByChar(line, '\t', NULL, LIFTOVER_MAX_WORDS); } else - wordCount = chopLine(line, NULL); + wordCount = chopLineLen(line); if (wordCount > LIFTOVER_MAX_WORDS) errAbort("Too many fields. Fieldcount %d > maximum fields %d in file %s", wordCount, LIFTOVER_MAX_WORDS, fileName); if (hasBin) wordCount--; lineFileReuse(lf); freez(&line); if (wordCount < 3) errAbort("Data format error: expecting at least 3 fields in BED file (%s)", fileName); if (bedFieldCount == 0) bedFieldCount = wordCount; if (bedFieldCount <= 10) { ct = bedOverSmallEnds(lf, wordCount, chainHash, minMatch,