| From 4c7629f590bb18855e478a826833adb05d2a128b Mon Sep 17 00:00:00 2001 |
| From: Rosen Penev <rosenp@gmail.com> |
| Date: Sat, 8 Jun 2024 15:35:47 -0700 |
| Subject: [PATCH] fix -Wformat-y2k error |
| |
| %c potentially prints a 2 digit year. Just use a normal format. |
| --- |
| src/iperf_error.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/src/iperf_error.c |
| +++ b/src/iperf_error.c |
| @@ -99,7 +99,7 @@ iperf_errexit(struct iperf_test *test, c |
| if (test != NULL && test->timestamps) { |
| time(&now); |
| ltm = localtime(&now); |
| - strftime(iperf_timestrerr, sizeof(iperf_timestrerr), "%c ", ltm); |
| + strftime(iperf_timestrerr, sizeof(iperf_timestrerr), "%Y-%m-%d %H:%M:%S", ltm); |
| ct = iperf_timestrerr; |
| } |
| |