Mail Archives: djgpp-workers/2001/01/27/12:34:03
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)
{
- Raw text -