mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-otpd: fix gcc complaints in Rawhide
In file included from /usr/include/string.h:519, from /usr/include/lber.h:30, from /usr/include/ldap.h:30, from internal.h:27, from main.c:31: In function 'strncpy', inlined from 'main' at main.c:237:5: /usr/include/bits/string_fortified.h:91:10: warning: 'strncpy' specified bound 255 equals destination size [-Wstringop-truncation] 91 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fixes: https://pagure.io/freeipa/issue/8585 Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
d99b7d0b01
commit
b36f224892
@ -214,7 +214,7 @@ static krb5_error_code setup_ldap(const char *uri, krb5_boolean bind,
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
const char *hostname;
|
const char *hostname;
|
||||||
char fqdn[IPA_HOST_FQDN_LEN];
|
char fqdn[IPA_HOST_FQDN_LEN + 1];
|
||||||
krb5_error_code retval;
|
krb5_error_code retval;
|
||||||
krb5_data hndata;
|
krb5_data hndata;
|
||||||
verto_ev *sig;
|
verto_ev *sig;
|
||||||
|
Loading…
Reference in New Issue
Block a user