diff --git a/HISTORY b/HISTORY index 531efada..1e1491e6 100644 --- a/HISTORY +++ b/HISTORY @@ -10,6 +10,9 @@ SnapRAID HISTORY * Fixed the smartctl type detection retry during probe on Windows to properly preserve the standby check option, preventing standby disks from spinning up if a retry is needed. + * Save the content file before aborting 'sync' due to safety thresholds + if files were touched by '--gui-touch-before', preventing timestamp + desynchronization and false diff reports on subsequent runs. 14.7 2026/06 ============ diff --git a/raid/int.c b/raid/int.c index 73ef9166..d825955d 100644 --- a/raid/int.c +++ b/raid/int.c @@ -433,9 +433,9 @@ void raid_rec2_int8(int nr, int *id, int *ip, int nd, size_t size, void **vv) uint8_t *q; uint8_t *qa; const int N = 2; - const uint8_t *T[N][N]; - uint8_t G[N * N]; - uint8_t V[N * N]; + const uint8_t *T[2][2]; + uint8_t G[2 * 2]; + uint8_t V[2 * 2]; size_t i; int j, k; diff --git a/raid/module.c b/raid/module.c index 18cc7f2c..2f638f5d 100644 --- a/raid/module.c +++ b/raid/module.c @@ -302,7 +302,7 @@ int raid_selftest(void) const int nv = nd + RAID_PARITY_MAX * 2 + 1; void *v_alloc; void **v; - void *ref[nd + RAID_PARITY_MAX]; + void *ref[TEST_COUNT + RAID_PARITY_MAX]; int ir[RAID_PARITY_MAX]; int ip[RAID_PARITY_MAX]; int i, np;