From: Francois Fleuret Date: Wed, 10 Mar 2010 21:41:12 +0000 (+0100) Subject: Fixed a bug due to using strncmp instead of memcmp (ahem). X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=e41b7a6614371af4f9ac5e988a6b468d1d1a0e60;p=finddup.git Fixed a bug due to using strncmp instead of memcmp (ahem). --- 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;