projects
/
finddup.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19ca11e
)
Fixed a bug due to using strncmp instead of memcmp (ahem).
author
Francois Fleuret
<francois@fleuret.org>
Wed, 10 Mar 2010 21:41:12 +0000
(22:41 +0100)
committer
Francois Fleuret
<francois@fleuret.org>
Wed, 10 Mar 2010 21:41:12 +0000
(22:41 +0100)
finddup.c
patch
|
blob
|
history
diff --git
a/finddup.c
b/finddup.c
index
40ce3f7
..
2067372
100644
(file)
--- 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(
strn
cmp(buffer1, buffer2, s1)) {
+ if(
mem
cmp(buffer1, buffer2, s1)) {
close(fd1);
close(fd2);
return 0;