Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 567608 | Differences between
and this patch

Collapse All | Expand All

(-)aa/put.c (-1 / +4 lines)
Lines 2081-2090 Link Here
2081
 */
2081
 */
2082
char *btoe(char *engout, const char *c)
2082
char *btoe(char *engout, const char *c)
2083
{
2083
{
2084
	char cp[9];	/* add in room for the parity 2 bits */
2084
	char cp[10];	/* add in room for the parity 2 bits + extract() slop */
2085
	int p, i;
2085
	int p, i;
2086
2086
2087
	engout[0] = '\0';
2087
	engout[0] = '\0';
2088
2089
	/* workaround for extract() reads beyond end of data */
2090
	memset(cp, 0, sizeof(cp));
2088
	memcpy(cp, c, 8);
2091
	memcpy(cp, c, 8);
2089
2092
2090
	/* compute parity */
2093
	/* compute parity */

Return to bug 567608