Mail Archives: djgpp-workers/2000/12/11/02:42:33
On Mon, 11 Dec 2000, Juan Manuel Guerrero wrote:
> Unfortunately, if the **unziped** file size exceeds 32kB
> djtar will crash with the following traceback:
>
> Abort!
> Exiting due to signal SIGABRT
> Raised at eip=0000f1b6
Thanks for hunting this down.
> /* Probably corrupted archive. Bail out. */
> ! if (error_message_not_printed)
> ! {
> ! error_message_not_printed = 0; /* Yes, we have printed it. */
> ! fprintf(log_out, "--- !!Directory checksum error!! ---\n");
> ! }
Please change the new variable's name to error_message_printed,
initialize it to zero, and set to 1 after the message is printed.
Double negation such as this:
error_message_not_printed = 0; /* Yes, we have printed it. */
confuses programmers and is a source of many programmatic errors
(althought your code is correct).
- Raw text -