diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/time-dst.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/time-dst.c b/src/shared/time-dst.c index 6195b11017..926d22b94b 100644 --- a/src/shared/time-dst.c +++ b/src/shared/time-dst.c @@ -244,6 +244,8 @@ read_again: if (fread(zone_names, 1, chars, f) != chars) return -EINVAL; + zone_names[chars] = '\0'; + for (i = 0; i < num_isstd; ++i) { int c = getc(f); if (c == EOF) |