chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libsystemd-network: fix writing of routes in dhcp lease file
[elogind.git]
/
src
/
shared
/
time-dst.c
diff --git
a/src/shared/time-dst.c
b/src/shared/time-dst.c
index 6195b110176a3f05001a5d0c5d2c02a1795eddac..926d22b94b62fd4c6180f6b96cdebb5caf301760 100644
(file)
--- 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)