X-Git-Url: https://www.fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=finddup.git;a=blobdiff_plain;f=finddup.c;h=20673723dbec75ae20ede7ad3240fcbe015938e2;hp=40ce3f7f263a9e2030b34f0cf935eb9ed449da4d;hb=e41b7a6614371af4f9ac5e988a6b468d1d1a0e60;hpb=19ca11ed9ac1e45505ca49bba7039f178f5c416c diff --git a/finddup.c b/finddup.c index 40ce3f7..2067372 100644 --- a/finddup.c +++ b/finddup.c @@ -160,7 +160,7 @@ int same_content(struct file_with_size *f1, struct file_with_size *f2) { close(fd2); return 1; } else { - if(strncmp(buffer1, buffer2, s1)) { + if(memcmp(buffer1, buffer2, s1)) { close(fd1); close(fd2); return 0;