d50328647c385edc3130e6df5159548dfc8a8336 galt Tue Dec 31 20:03:59 2024 -0800 fix compiler warning on hgwdev-new with Rocky 9. diff --git src/hg/hgIntegrator/hgIntegrator.c src/hg/hgIntegrator/hgIntegrator.c index 61d34e3..220fac5 100644 --- src/hg/hgIntegrator/hgIntegrator.c +++ src/hg/hgIntegrator/hgIntegrator.c @@ -272,31 +272,31 @@ grep all_ ~/kent/src/hg/makeDb/schema/all.joiner \ | perl -wpe 's/^.*all_/all_/; s/\..*$//;' \ | sort -u */ // and cross-checking whether the names are in trackDb (only mrna and est; the bacends, // fosends and sts tables are auxiliary tables, not track tables). I expect it to be stable -- // these tracks are ancient and we won't make that mistake again. :) { if (sameString(table, "mrna") || sameString(table, "est")) { int tableLen = strlen(table); int prefixLen = strlen("all_"); if (sizeofTable > tableLen + prefixLen + 1) { memmove(table+prefixLen, table, tableLen+1); - strncpy(table, "all_", prefixLen); + strncpy(table, "all_", prefixLen+1); } } } static int joinerDtfCmp(const void *a, const void *b) /* Compare joinerDtf's alphabetically by database, table and (possiby NULL) field. */ { struct joinerDtf *dtfA = *((struct joinerDtf **)a); struct joinerDtf *dtfB = *((struct joinerDtf **)b); int dif = strcmp(dtfA->database, dtfB->database); if (dif == 0) dif = strcmp(dtfA->table, dtfB->table); if (dif == 0) { if (dtfA->field == NULL && dtfB->field != NULL)