On 11 July 2018 at 18:06, Khem Raj <[email protected]> wrote:
> This fails for mips/musl builds
>
> | ../git/lib/kcapi-kernel-if.c: In function '__kcapi_common_getinfo.isra.2':
> | ../git/lib/kcapi-kernel-if.c:632:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |    strncpy(req.cru.cru_name, ciphername, strlen(ciphername));
> |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> | ../git/lib/kcapi-kernel-if.c:629:3: error: 'strncpy' output
> truncated before terminating nul copying as many bytes from a string
> as its length [-Werror=stringop-truncation]
> |    strncpy(req.cru.cru_driver_name, ciphername,
> |    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> |     strlen(ciphername));
> |     ~~~~~~~~~~~~~~~~~~~
> | cc1: all warnings being treated as errors
> | make: *** [lib/libkcapi_la-kcapi-kernel-if.lo] Error 1

Thanks for letting me know. I'll take a look and fix it.

Best regards,
Krzysztof
-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to