summaryrefslogtreecommitdiffstats
path: root/sys-utils/chcpu.c
diff options
context:
space:
mode:
authorSami Kerola2018-05-03 23:57:59 +0200
committerKarel Zak2018-05-10 11:29:17 +0200
commite4077e0e445ddc8d81e4fbab599655bb48ac130a (patch)
treeb6adcfcaae3a2d592a14268c0701b9ae5b844faf /sys-utils/chcpu.c
parentzramctl: fix truncation warning (diff)
downloadkernel-qcow2-util-linux-e4077e0e445ddc8d81e4fbab599655bb48ac130a.tar.gz
kernel-qcow2-util-linux-e4077e0e445ddc8d81e4fbab599655bb48ac130a.tar.xz
kernel-qcow2-util-linux-e4077e0e445ddc8d81e4fbab599655bb48ac130a.zip
last: fix false positive compiler warning
login-utils/last.c: In function ‘list’: login-utils/last.c:398:36: warning: argument to ‘sizeof’ in ‘strncat’ call is the same expression as the source; did you mean to use the size of the destination? [-Wsizeof-pointer-memaccess] strncat(utline, p->ut_line, sizeof(p->ut_line)); The sizeof(utline) is defined as sizeof(p->ut_line) + 1, so the compiler got that wrong. Lets truncate strncat() otherway around to keep gcc 8.1 happy. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'sys-utils/chcpu.c')
0 files changed, 0 insertions, 0 deletions