b59d72e0511481a477b5a9d772c68b975bd585bc galt Tue Dec 31 23:51:55 2024 -0800 minor compilter fix for gbToFaRa. diff --git src/hg/gbToFaRa/gbToFaRa.c src/hg/gbToFaRa/gbToFaRa.c index 02161f0..b173205 100644 --- src/hg/gbToFaRa/gbToFaRa.c +++ src/hg/gbToFaRa/gbToFaRa.c @@ -726,31 +726,31 @@ { doAsterisk = TRUE; } else { s = strstr(comLine, "NOTE:"); } } if (s == NULL) { warn("No NOTE: in %s", accession); return FALSE; } s = strstr(s, "preserved"); if (s == NULL) - errAbort("Can't find preserved marker in %s\n%s\n", accession, s); + errAbort("Can't find preserved marker in %s\n", accession); for (;;) { int start, end; int i; if (doAsterisk) { if ((s = nextWordStart(s)) == NULL || s[0] != '*') break; } if ((s = nextWordStart(s)) == NULL) break; if (startsWith("gap", s)) { if ((s = nextWordStart(s)) == NULL) @@ -929,31 +929,31 @@ if (isspace(*x)) { ++x; break; } } if (!isdigit(*x) || !isdigit(*y)) errAbort("Expecting number in %s style %s", styleName, accession); addContig(atoi(x)-1, atoi(y)); s = z + sepLen; } return TRUE; } else if ((s = strstr(comLine, "contig 1:")) != NULL) { - char sbuf[16]; + char sbuf[32]; int slen; int cix = 1; int start, end; char *numberSep = ".-\t "; for (;;) { slen = sprintf(sbuf, "contig %d:", cix++); if ((s = strstr(s, sbuf)) == NULL) break; s = skipLeadingSpaces(s + slen); if (!isdigit(s[0])) beutenErr(accession); start = atoi(s); if ((s = skipTo(s, numberSep)) == NULL) beutenErr(accession);