projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f4f918
)
src/daemon/utils_time.c: Fix invalid strcpy position in format_rfc3339().
author
Igor Peshansky
<igorpeshansky@github.com>
Sat, 17 Sep 2016 02:56:16 +0000
(22:56 -0400)
committer
Igor Peshansky
<igorpeshansky@github.com>
Sat, 17 Sep 2016 03:08:28 +0000
(23:08 -0400)
src/daemon/utils_time.c
patch
|
blob
|
history
diff --git
a/src/daemon/utils_time.c
b/src/daemon/utils_time.c
index
45828b3
..
a3a9c33
100644
(file)
--- a/
src/daemon/utils_time.c
+++ b/
src/daemon/utils_time.c
@@
-180,7
+180,7
@@
int format_rfc3339 (char *buffer, size_t buffer_size, struct tm const *t_tm, lon
size_left -= len;
}
- sstrncpy (
buffer, zone, buffer_size
);
+ sstrncpy (
pos, zone, size_left
);
return 0;
} /* }}} int format_rfc3339 */