summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2023-03-22 10:59:12 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2023-03-22 10:59:12 -0700
commit4b5a27ef9aa40fa6f0c50c5e49b704b4649136a2 (patch)
tree2114644605d13fc2559f98a34f9e6cd8d412f95f
parent5e7053a4c53488dc256c5026633c3f7e6f4f0afd (diff)
downloadtz-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/zdump.c b/zdump.c
index 88bcd3a..6f9573e 100644
--- a/zdump.c
+++ b/zdump.c
@@ -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)