Snippets for acct 6.6.4 from Alpine ppc64le
Sourced from https://build.alpinelinux.org/buildlogs/build-edge-ppc64le/main/acct/acct-6.6.4-r2.log.
-
readutmp.c:50:47: warning: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] 50 | strncpy (trimmed_name, UT_USER (ut), sizeof (UT_USER (ut))); | ^ -
dev_hash.c:115:30: warning: '%d' directive writing between 1 and 10 bytes into a region of size 5 [-Wformat-overflow=] 115 | sprintf (dd.name, "pts/%d", i); | ^~ -
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)", | ^~~~