summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/bgpd/test_mpath.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bgpd/test_mpath.c b/tests/bgpd/test_mpath.c
index bc2c1e8a44..ebbe3ac3e2 100644
--- a/tests/bgpd/test_mpath.c
+++ b/tests/bgpd/test_mpath.c
@@ -467,9 +467,10 @@ int main(void)
{
int pass_count, fail_count;
time_t cur_time;
+ char buf[32];
time(&cur_time);
- printf("BGP Multipath Tests Run at %s", ctime(&cur_time));
+ printf("BGP Multipath Tests Run at %s", ctime_r(&cur_time, buf));
if (global_test_init() != 0) {
printf("Global init failed. Terminating.\n");
exit(1);