aboutsummaryrefslogtreecommitdiff
path: root/src/timezone/zic.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/timezone/zic.c')
-rw-r--r--src/timezone/zic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timezone/zic.c b/src/timezone/zic.c
index 13baf73d3c1..1a7ec68d7c0 100644
--- a/src/timezone/zic.c
+++ b/src/timezone/zic.c
@@ -1771,7 +1771,7 @@ writezone(const char *name, const char *string)
/* Print current timezone abbreviations if requested */
if (print_abbrevs &&
- (ats[i] >= print_cutoff || i == thistimelim - 1))
+ (i == thistimelim - 1 || ats[i + 1] > print_cutoff))
{
unsigned char tm = typemap[types[i]];
char *thisabbrev = &thischars[indmap[abbrinds[tm]]];