[Buildroot] [PATCH] package/libpam-tacplus: fix compilation with GCC 8

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Dec 13 21:12:12 UTC 2018


Hello,

On Tue, 11 Dec 2018 09:21:13 -0200, Carlos Santos wrote:
> GCC 8 demands that the size of the string copied by strncpy be smaller
> than the size of the destination to keep space for the trailibg '\0'.
> This causes a compilation error in pam_tacplus, so add a patch already
> sent uptream to fix it.
> 
> Fixes:
>   http://autobuild.buildroot.net/results/da6d150e470046c03c5f7463de045604e15e4a30/
> 
> Signed-off-by: Carlos Santos <casantos at datacom.com.br>
> ---
>  ...0002-Fix-compilation-of-tacc.c-with-GCC-8.patch | 39 ++++++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 package/libpam-tacplus/0002-Fix-compilation-of-tacc.c-with-GCC-8.patch

Applied to master, thanks. Please submit the patch upstream. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com



More information about the buildroot mailing list