b36f224 ipa-otpd: fix gcc complaints in Rawhide

Authored and Committed by abbra 3 years ago
    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>
    
        
file modified
+1 -1