[NTG-pdftex] Patch CreationDate

Heiko Oberdiek oberdiek@uni-freiburg.de
Thu, 31 Jul 2003 14:15:31 +0200


On Wed, Jul 30, 2003 at 10:08:11PM +0200, Heiko Oberdiek wrote:

> Patch CreationDate

>   utils.c.diff        for TeX/texk/web2c/pdftexdir/utils.c

First bug fix:

> +     if (zone_str[12] == '6' && zone_str[13] != 0) {
> +         zone_str[12] == '5';
> +         zone_str[13] == '9';
> +     }

Should read:

+     if (zone_str[12] == '6' && zone_str[13] != 0) {
+         zone_str[12] = '5';
+         zone_str[13] = '9';
+     }

Explanation for "zone_str[13] != 0":
I check here not for '0' and '1' explicitly, but also for
other don't care cases to save one test. ("6X" with all
possible X except '\0').

The string end test is needed for safety, because it 
would be overwritten by "zone_str[13] = '9';

Yours sincerely
  Heiko <oberdiek@uni-freiburg.de>
--