[tz] [PROPOSED PATCH 3/4] * zdump.c: Avoid crashes on unlikely integer overflows.

Paul Eggert eggert at cs.ucla.edu
Sat Aug 23 06:51:31 UTC 2014


Paul Eggert wrote:
> +  strcpy(env0, "TZ=");
> +  strcat(env0, val);
> +  env[0] = env0;

This is more-idiomatically rendered as:

    env[0] = strcat(strcpy(env0, "TZ="), val);


More information about the tz mailing list