From b37a7cd9935982cd89d50e3d2d0db5fc4add9620 Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Sat, 8 Feb 2025 22:25:09 -0500 Subject: [PATCH] Revert change to how -y generates tags. Commit e7ec975ff0ae2a1885cc8a66644fad9831ea516a changed how the MD5 sum was calculated to include the filename and line number. This commit reverts that change; the tag is generated purely on the REM command line. --- src/calendar.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/calendar.c b/src/calendar.c index 8f5e6971..cbe04ad0 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -2944,9 +2944,6 @@ char const *SynthesizeTag(void) static char out[128]; MD5Init(&ctx); MD5Update(&ctx, (unsigned char *) CurLine, strlen(CurLine)); - MD5Update(&ctx, (unsigned char *) FileName, strlen(FileName)); - snprintf((char *) buf, sizeof(buf), "%d", LineNo); - MD5Update(&ctx, buf, strlen( (char *) buf)); MD5Final(buf, &ctx); snprintf(out, sizeof(out), "__syn__%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x", (unsigned int) buf[0], (unsigned int) buf[1],