Snippets for acct 6.6.4 from Nix x86_64-linux
Sourced from https://hydra.nixos.org/log/4j1xw8p7x86dkd71prqn85ard6cflbqn-acct-6.6.4.drv.
-
last.c:709:64: warning: '%02d' directive output may be truncated writing between 2 and 9 bytes into a region of size between 6 and 11 [-Wformat-truncation=] 709 | (void)snprintf (temp_str, sizeof(temp_str)," (%02d:%02d)", hours, minutes); | ^~~~ -
last.c:706:64: warning: '%02d' directive output may be truncated writing between 2 and 9 bytes into a region of size between 6 and 11 [-Wformat-truncation=] 706 | (void)snprintf (temp_str, sizeof(temp_str)," (%02d:%02d:%02d)", | ^~~~ -
last.c:701:66: warning: '%02d' directive output may be truncated writing between 2 and 9 bytes into a region of size between 0 and 10 [-Wformat-truncation=] 701 | (void)snprintf (temp_str, sizeof(temp_str),"(%d+%02d:%02d)", days, hours, minutes); | ^~~~ -
last.c:698:67: warning: '%02d' directive output may be truncated writing between 2 and 9 bytes into a region of size between 0 and 10 [-Wformat-truncation=] 698 | (void)snprintf (temp_str, sizeof(temp_str), "(%d+%02d:%02d:%02d)", | ^~~~ -
sa.c:1080:7: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation] 1080 | strncpy (ua.name, name, NAME_LEN); | ^ -
sa.c:1289:3: warning: '__builtin_strncpy' specified bound 16 equals destination size [-Wstringop-truncation] 1289 | strncpy (ck.comm, comm, COMM_LEN); | ^