From 7af6814e5cd8aa0c3c3acdf7fe135ee62cb85992 Mon Sep 17 00:00:00 2001 From: Sam Stern Date: Wed, 1 Feb 2023 20:30:23 -0800 Subject: [PATCH] Fix issue #53 --- src/interdiff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interdiff.c b/src/interdiff.c index 9c37cf4..54d7cba 100644 --- a/src/interdiff.c +++ b/src/interdiff.c @@ -1058,7 +1058,7 @@ output_delta (FILE *p1, FILE *p2, FILE *out) if (getline (&oldname, &namelen, p1) < 0) error (EXIT_FAILURE, errno, "Bad patch #1"); - } while (strncmp (oldname, "+++ ", 4)); + } while (strncmp (oldname, "--- ", 4)); oldname[strlen (oldname) - 1] = '\0'; do {