about summary refs log tree commit diff
path: root/pkgs/tools/text/diffutils/fix-diff-D.patch
blob: 616f092791404ecb5493e176a4a8dabacbc6f2a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
https://git.savannah.gnu.org/cgit/diffutils.git/patch/?id=ba08fbbb0ca5da455bf695236c57bc50e7faed50
https://github.com/NixOS/nixpkgs/pull/213421#issuecomment-1407749912

Fix 'diff -D' regression
--- a/src/diff.c
+++ b/src/diff.c
@@ -416,7 +416,7 @@ main (int argc, char **argv)
 	    char *base = b;
 	    int changes = 0;
 
-	    for (i = 0; i < sizeof sizeof C_ifdef_group_formats; i++)
+	    for (i = 0; i < sizeof C_ifdef_group_formats; i++)
 	      {
 		char ch = C_ifdef_group_formats[i];
 		switch (ch)