Skip to content

Commit

Permalink
fixup! (compare_files): fix -Wstringop-overread warning exposed on …
Browse files Browse the repository at this point in the history
…`s390x` (GCC 11)

Signed-off-by: Yury V. Zaytsev <[email protected]>
  • Loading branch information
zyv committed Feb 4, 2025
1 parent c524723 commit b9c5c06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/filemanager/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ compare_files (const vfs_path_t *vpath1, const vfs_path_t *vpath2, off_t size)
;
}
while (n1 == n2 && n1 == sizeof (buf1) && memcmp (buf1, buf2, sizeof (buf1)) == 0);
result = (n1 != n2) || (memcmp (buf1, buf2, MIN (n1, sizeof (buf1))) != 0);
result = (n1 != n2) || (memcmp (buf1, buf2, MIN ((size_t) n1, sizeof (buf1))) != 0);
rotate_dash (FALSE);

close (file2);
Expand Down

0 comments on commit b9c5c06

Please sign in to comment.