wok-current annotate busybox/stuff/busybox-1.20-diff.u @ rev 13334
python-pyexiv2: update WGET_URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 04 17:06:54 2012 +0200 (2012-09-04) |
parents | |
children |
rev | line source |
---|---|
pascal@12460 | 1 --- busybox-1.20.0/editors/diff.c |
pascal@12460 | 2 +++ busybox-1.20.0/editors/diff.c |
pascal@12460 | 3 @@ -729,6 +729,14 @@ |
pascal@12460 | 4 j = fread(buf1, 1, sz, fp[1]); |
pascal@12460 | 5 if (i != j) { |
pascal@12460 | 6 differ = true; |
pascal@12460 | 7 + /* Ensure we detect binary file even if a file is empty or very |
pascal@12460 | 8 + short. */ |
pascal@12460 | 9 + for (k = 0; k < i; k++) |
pascal@12460 | 10 + if (!buf0[k]) |
pascal@12460 | 11 + binary = true; |
pascal@12460 | 12 + for (k = 0; k < j; k++) |
pascal@12460 | 13 + if (!buf1[k]) |
pascal@12460 | 14 + binary = true; |
pascal@12460 | 15 i = MIN(i, j); |
pascal@12460 | 16 } |
pascal@12460 | 17 if (i == 0) |