Skip to content

Commit 640d1c9

Browse files
author
Arthur Zakirov
committed
Make compiler happy
1 parent b52ee32 commit 640d1c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/show.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ show_instance_plain(parray *backup_list, bool show_name)
363363
time2iso(row->recovery_time, lengthof(row->recovery_time),
364364
backup->recovery_time);
365365
else
366-
StrNCpy(row->recovery_time, "----", 4);
366+
StrNCpy(row->recovery_time, "----", sizeof(row->recovery_time));
367367
widths[cur] = Max(widths[cur], strlen(row->recovery_time));
368368
cur++;
369369

@@ -388,7 +388,7 @@ show_instance_plain(parray *backup_list, bool show_name)
388388
snprintf(row->duration, lengthof(row->duration), "%.*lfs", 0,
389389
difftime(backup->end_time, backup->start_time));
390390
else
391-
StrNCpy(row->duration, "----", 4);
391+
StrNCpy(row->duration, "----", sizeof(row->duration));
392392
widths[cur] = Max(widths[cur], strlen(row->duration));
393393
cur++;
394394

0 commit comments

Comments
 (0)