src/hg/ratStuff/mafAddQRows/mafAddQRows.c 1.5
1.5 2009/11/02 21:39:51 hiram
Fixup crash in mafAddQRows and off-by-one error in qacAddQRows
Index: src/hg/ratStuff/mafAddQRows/mafAddQRows.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/ratStuff/mafAddQRows/mafAddQRows.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/hg/ratStuff/mafAddQRows/mafAddQRows.c 2 Dec 2008 00:47:12 -0000 1.4
+++ src/hg/ratStuff/mafAddQRows/mafAddQRows.c 2 Nov 2009 21:39:51 -0000 1.5
@@ -101,9 +101,9 @@
/* read species and directory info from the species.lst file */
{
struct slPair *speciesList = NULL;
struct lineFile *lf = lineFileOpen(speciesFile, TRUE);
-char *row[1];
+char *row[2];
while (lineFileNextRow(lf, row, 2))
slPairAdd(&speciesList, row[0], (void *) cloneString(row[1]));