diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/time-dst.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/time-dst.c b/src/shared/time-dst.c index 926d22b94b..1ce6f721b7 100644 --- a/src/shared/time-dst.c +++ b/src/shared/time-dst.c @@ -183,7 +183,8 @@ read_again: return -EINVAL; } - transitions = malloc0(total_size + tzspec_len); + /* leave space for additional zone_names zero terminator */ + transitions = malloc0(total_size + tzspec_len + 1); if (transitions == NULL) return -EINVAL; |