summaryrefslogtreecommitdiff
path: root/pathd
diff options
context:
space:
mode:
authorMark Stapp <mjs@labn.net>2023-09-19 13:15:55 -0400
committerMark Stapp <mjs@labn.net>2023-09-19 16:25:01 -0400
commit1a9f9ef6022c2c6a285ffc33b66ea1b9935f19b6 (patch)
tree507c1eb0f0033d1fd61b7e05d567c542f541abdc /pathd
parent8527084488e9d37386788feb755e21db706210d3 (diff)
pathd: replace ctime with ctime_r
No ctime - replace with ctime_r() Signed-off-by: Mark Stapp <mjs@labn.net>
Diffstat (limited to 'pathd')
-rw-r--r--pathd/path_pcep_debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/pathd/path_pcep_debug.c b/pathd/path_pcep_debug.c
index 7d04587b8d..7bff9c7b9c 100644
--- a/pathd/path_pcep_debug.c
+++ b/pathd/path_pcep_debug.c
@@ -1312,6 +1312,8 @@ void _format_path_hop(int ps, struct path_hop *hop)
void _format_pcep_event(int ps, pcep_event *event)
{
+ char buf[32];
+
if (event == NULL) {
PATHD_FORMAT("NULL\n");
} else {
@@ -1320,7 +1322,7 @@ void _format_pcep_event(int ps, pcep_event *event)
PATHD_FORMAT("%*sevent_type: %s\n", ps2, "",
pcep_event_type_name(event->event_type));
PATHD_FORMAT("%*sevent_time: %s", ps2, "",
- ctime(&event->event_time));
+ ctime_r(&event->event_time, buf));
if (event->session == NULL) {
PATHD_FORMAT("%*ssession: NULL\n", ps2, "");
} else {