f952b14fca3833e9d8fef0ae8a086ad15485b552 galt Wed Jan 1 02:11:38 2025 -0800 fix various errors for utils compiled on Rocky 9 hgwdev-new. diff --git src/hg/makeDb/schema/dbSnoop/dbSnoop.c src/hg/makeDb/schema/dbSnoop/dbSnoop.c index 723bc4e..26b98bb 100644 --- src/hg/makeDb/schema/dbSnoop/dbSnoop.c +++ src/hg/makeDb/schema/dbSnoop/dbSnoop.c @@ -463,31 +463,31 @@ char **row; struct hash *fieldHash = hashNew(0); struct hash *typeHash = hashNew(0); struct hash *tableHash = hashNew(0); struct fieldInfo *fiList = NULL, *fi; struct tableInfo *tiList = NULL, *ti; struct tableType *ttList = NULL, *tt; long long totalData = 0, totalIndex = 0, totalRows = 0; int totalFields = 0; /* Collect info from database. */ while ((row = sqlNextRow(sr)) != NULL) { struct tableStatus *status; if ((majorVersion > 4) || ((4 == majorVersion) && (minorVersion > 0))) - memcpy(row+2, row+3, (TABLESTATUS_NUM_COLS-2)*sizeof(char*)); + memmove(row+2, row+3, (TABLESTATUS_NUM_COLS-2)*sizeof(char*)); if (row[3]) { status = tableStatusLoad(row); if (skipTable == NULL || differentString(status->name, skipTable)) tableSummary(status, conn2, f, fieldHash, &fiList, tableHash, &tiList, typeHash, &ttList); } } sqlFreeResult(&sr); if (unsplit) unsplitTables(conn, &tiList); /* Print overall database summary. */ for (ti = tiList; ti != NULL; ti = ti->next)