From 640d1c9df40a08fc99c0d9f3c489b45581e8c28d Mon Sep 17 00:00:00 2001 From: Arthur Zakirov Date: Sun, 25 Nov 2018 00:47:00 +0300 Subject: [PATCH] Make compiler happy --- src/show.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/show.c b/src/show.c index 38942895..990998ba 100644 --- a/src/show.c +++ b/src/show.c @@ -363,7 +363,7 @@ show_instance_plain(parray *backup_list, bool show_name) time2iso(row->recovery_time, lengthof(row->recovery_time), backup->recovery_time); else - StrNCpy(row->recovery_time, "----", 4); + StrNCpy(row->recovery_time, "----", sizeof(row->recovery_time)); widths[cur] = Max(widths[cur], strlen(row->recovery_time)); cur++; @@ -388,7 +388,7 @@ show_instance_plain(parray *backup_list, bool show_name) snprintf(row->duration, lengthof(row->duration), "%.*lfs", 0, difftime(backup->end_time, backup->start_time)); else - StrNCpy(row->duration, "----", 4); + StrNCpy(row->duration, "----", sizeof(row->duration)); widths[cur] = Max(widths[cur], strlen(row->duration)); cur++;