projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0acd5a0
)
shared: time-dst - ensure nulstr is null terminated
author
Tom Gundersen
<teg@jklm.no>
Sat, 29 Nov 2014 09:40:21 +0000
(10:40 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Sat, 29 Nov 2014 09:40:21 +0000
(10:40 +0100)
Fixes CID #1237772.
src/shared/time-dst.c
patch
|
blob
|
history
diff --git
a/src/shared/time-dst.c
b/src/shared/time-dst.c
index
6195b11
..
926d22b
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)