aboutsummaryrefslogtreecommitdiff
path: root/libpamc
diff options
context:
space:
mode:
authorDmitry V. Levin <ldv@strace.io>2023-01-19 08:00:00 +0000
committerDmitry V. Levin <ldv@strace.io>2023-01-19 08:00:00 +0000
commit2aae166e5e4ce921f750cb08f8da08f1cfcedead (patch)
treee7279d8e4623774f43f98980e56fce0ccc7e13f0 /libpamc
parent5b203b05dc7232ed63763ecbbe78b4a153f19075 (diff)
downloadpam-2aae166e5e4ce921f750cb08f8da08f1cfcedead.tar.gz
pam-2aae166e5e4ce921f750cb08f8da08f1cfcedead.tar.bz2
pam-2aae166e5e4ce921f750cb08f8da08f1cfcedead.zip
pam_limits: silence compiler warning
gcc-12 insists on issuing the following warning: In file included from /usr/include/string.h:535, from pam_limits.c:24: In function 'strncat', inlined from 'check_logins' at pam_limits.c:287:6, inlined from 'setup_limits' at pam_limits.c:1066:13, inlined from 'pam_sm_open_session' at pam_limits.c:1267:14: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:138:10: error: '__builtin___strncat_chk' argument 2 declared attribute 'nonstring' [-Werror=stringop-overread] 138 | return __builtin___strncat_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 139 | __glibc_objsize (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/utmp.h:29, from pam_limits.c:37: /usr/include/x86_64-linux-gnu/bits/utmp.h: In function 'pam_sm_open_session': /usr/include/x86_64-linux-gnu/bits/utmp.h:66:8: note: argument 'ut_user' declared here 66 | char ut_user[UT_NAMESIZE] | ^~~~~~~ * modules/pam_limits/pam_limits.c (check_logins): Use memcpy instead of strncat to pacify the compiler.
Diffstat (limited to 'libpamc')
0 files changed, 0 insertions, 0 deletions