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 dest must be at least strlen(dest)+n+1" For every strncat operation in that for loop..... Cihula, Joseph wrote: > Good catch. What compiler, and version of it, are you using. gcc 4.4.3 > doesn't catch this. $ gcc -v Target: x86_64-pc-linux-gnu gcc version 4.3.4 (Gentoo 4.3.4 p1.0, pie-10.1.5) HTH, Martin ------------------------------------------------------------------------------ _______________________________________________ tboot-devel mailing list tboot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tboot-devel