diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-22 10:59:12 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2023-03-22 10:59:12 -0700 |
commit | 4b5a27ef9aa40fa6f0c50c5e49b704b4649136a2 (patch) | |
tree | 2114644605d13fc2559f98a34f9e6cd8d412f95f | |
parent | 5e7053a4c53488dc256c5026633c3f7e6f4f0afd (diff) | |
download | tz-4b5a27ef9aa40fa6f0c50c5e49b704b4649136a2.tar.gz |
Port to C23 + !setenv + !localtime_rz
Problem reported privately by panic (2023-03-22).
* zdump.c (tzalloc): Fix misspelling typos in code that is
compiled when not using localtime_rz (e.g., when not linking with
tzcode and not on NetBSD), and setenv is missing, and the compiler
supports C23 or later.
-rw-r--r-- | zdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -273,8 +273,8 @@ tzalloc(char const *val) while (*e++) { # ifdef ckd_add - if (ckd_add(&initial_nenvptrs, initial_envptrs, 1) - || INDEX_MAX < initial_envptrs) + if (ckd_add(&initial_nenvptrs, initial_nenvptrs, 1) + || INDEX_MAX < initial_nenvptrs) size_overflow(); # else if (initial_nenvptrs == INDEX_MAX / sizeof *environ) |