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

Collapse All | Expand All

(-)adbuf.c.org (-1 / +1 lines)
Lines 127-133 Link Here
127
	if (adbuf_ptr(b) == NULL)
127
	if (adbuf_ptr(b) == NULL)
128
		return 1; /* bad buffer in input */
128
		return 1; /* bad buffer in input */
129
	if (b->left >= 2) {
129
	if (b->left >= 2) {
130
		unsigned char *p = b->buf + adbuf_used(b);
130
		unsigned char *p = (unsigned char *) (b->buf + adbuf_used(b));
131
131
132
		*p = c;
132
		*p = c;
133
		*(p+1) = '\0';
133
		*(p+1) = '\0';

Return to bug 313855