Wang, Shane wrote:
> Can you send a patch to fix it?
To make it compile:
-static char help[MAX_HELP_TEXT] =
+static char help[MAX_HELP_TEXT+1] =
But thinking about it, that for loop does not care about the size
of the destination buffer. Or as the strncat man page says
"Therefore, the size of de
> From: Martin Pirker [mailto:martin.pir...@iaik.tugraz.at]
> Sent: Monday, April 26, 2010 5:36 AM
>
> Hi...
>
> Compiling latest revision fails with:
>
> In function 'strncat',
> inlined from 'add_plugins' at crtpolelt.c:118,
> inlined from 'main' at crtpolelt.c:132:
> /usr/include/bits/st
Hi Martin,
Can you send a patch to fix it?
Thanks.
Shane
Martin Pirker wrote:
> Hi...
>
> Compiling latest revision fails with:
>
> In function 'strncat',
> inlined from 'add_plugins' at crtpolelt.c:118,
> inlined from 'main' at crtpolelt.c:132:
> /usr/include/bits/string3.h:153: error
Hi...
Compiling latest revision fails with:
In function 'strncat',
inlined from 'add_plugins' at crtpolelt.c:118,
inlined from 'main' at crtpolelt.c:132:
/usr/include/bits/string3.h:153: error: call to __builtin___strncat_chk might
overflow destination buffer
make[2]: *** [crtpolelt.o] E