Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 285854
Collapse All | Expand All

(-)newt-0.52.10/textbox.c.orig (-1 / +1 lines)
Lines 179-185 static void doReflow(const char * text, Link Here
179
179
180
    if (resultPtr) {
180
    if (resultPtr) {
181
	/* XXX I think this will work */
181
	/* XXX I think this will work */
182
	result = malloc(strlen(text) + (strlen(text) / width) + 2);
182
	result = malloc(strlen(text) + (strlen(text) / (width - 1)) + 2);
183
	*result = '\0';
183
	*result = '\0';
184
    }
184
    }

Return to bug 285854