X-Authentication-Warning: kendall.sfbr.org: jeffw set sender to jeffw AT darwin DOT sfbr DOT org using -f Date: Sat, 27 Jan 2001 11:36:05 -0600 From: JT Williams To: djgpp-workers AT delorie DOT com Subject: djasm patch #3 Message-ID: <20010127113605.A24661@kendall.sfbr.org> Mail-Followup-To: djgpp-workers AT delorie DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Reply-To: djgpp-workers AT delorie DOT com Here is a third (and last, I think) hunk of diffs that can be ignored (or that Bill should apply to his version of djasm ;-). According to my research the fix was supplied by Martin (see the thread at mail-archives/browse.cgi?p=djgpp-workers/2001/01/02/11:03:20) at the same time he fixed the date format. Do these changes deserve explicit entries in wc20x.txi? -- jtw --- djasm.y Thu Jan 25 16:11:57 2001 +++ /home/jeffw/tmp/bcurrie/djasm-bc/djasm/djasm.y Fri Jan 26 15:38:46 2001 @@ -1362,20 +1458,11 @@ exe[22] = 0; /* relative CS */ exe[23] = 0; - /* These must be zero, otherwise they are interpreted as an offset to - a "new executable" header. */ - exe[60] = 0; - exe[61] = 0; - exe[62] = 0; - exe[63] = 0; -#define INFO_TEXT_START (64) - time(&now); - - sprintf(exe+INFO_TEXT_START, "\r\n%s generated from %s by djasm, on %.24s\r\n", argv[2], argv[1], ctime(&now)); + sprintf(exe+28, "\r\n%s generated from %s by djasm, on %.24s\r\n", argv[2], argv[1], ctime(&now)); if (copyright) - strncat(exe+INFO_TEXT_START, copyright, (512-3-INFO_TEXT_START)-strlen(exe+INFO_TEXT_START)); /* -3 for the following line: */ - strcat(exe+INFO_TEXT_START, "\r\n\032"); + strncat(exe+28, copyright, 480-strlen(exe+28)); + strcat(exe+28, "\r\n\032"); if (argv[2] == 0) {