X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/896f046f79252045e6044482add0f8ef24bde911..a0456b9c4635be8832fc5712454a75ec102b1176:/generator.c diff --git a/generator.c b/generator.c index d1864b7a..02d514c9 100644 --- a/generator.c +++ b/generator.c @@ -598,7 +598,7 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st) /* if always checksum is set then we use the checksum instead of the file time to determine whether to sync */ if (always_checksum > 0 && S_ISREG(st->st_mode)) { - char sum[MD4_SUM_LENGTH]; + char sum[MAX_DIGEST_LEN]; file_checksum(fn, sum, st->st_size); return memcmp(sum, F_SUM(file), checksum_len) == 0; }