73aed212e68e6aa87589bc619b2231dbd96f40f9 hartera Mon Apr 15 13:02:57 2013 -0700 Changed size of row array to match the new ucscRetroInfo table size after a column was dropped. diff --git src/hg/lib/ucscRetroInfo.c src/hg/lib/ucscRetroInfo.c index 77a3925..f7ef9aa 100644 --- src/hg/lib/ucscRetroInfo.c +++ src/hg/lib/ucscRetroInfo.c @@ -161,49 +161,49 @@ ret->overName = cloneString(row[46]); ret->overStart = sqlSigned(row[47]); ret->overExonCover = sqlSigned(row[48]); safecpy(ret->overStrand, sizeof(ret->overStrand), row[49]); ret->posConf = sqlFloat(row[50]); ret->polyAlen = sqlUnsigned(row[51]); return ret; } struct ucscRetroInfo *ucscRetroInfoLoadAll(char *fileName) /* Load all ucscRetroInfo from a whitespace-separated file. * Dispose of this with ucscRetroInfoFreeList(). */ { struct ucscRetroInfo *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); -char *row[53]; +char *row[52]; while (lineFileRow(lf, row)) { el = ucscRetroInfoLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; } struct ucscRetroInfo *ucscRetroInfoLoadAllByChar(char *fileName, char chopper) /* Load all ucscRetroInfo from a chopper separated file. * Dispose of this with ucscRetroInfoFreeList(). */ { struct ucscRetroInfo *list = NULL, *el; struct lineFile *lf = lineFileOpen(fileName, TRUE); -char *row[53]; +char *row[52]; while (lineFileNextCharRow(lf, chopper, row, ArraySize(row))) { el = ucscRetroInfoLoad(row); slAddHead(&list, el); } lineFileClose(&lf); slReverse(&list); return list; } struct ucscRetroInfo *ucscRetroInfoCommaIn(char **pS, struct ucscRetroInfo *ret) /* Create a ucscRetroInfo out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new ucscRetroInfo */