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

Collapse All | Expand All

(-)src/gfx.cpp (-3 / +4 lines)
Lines 256-264 Link Here
256
			w += GetCharacterWidth(size, c);
256
			w += GetCharacterWidth(size, c);
257
257
258
			if (w >= maxw) {
258
			if (w >= maxw) {
259
				/* string got too big... insert dotdotdot */
259
				/* string got too big... insert dotdotdot, but make sure we do not
260
				ddd_pos[0] = ddd_pos[1] = ddd_pos[2] = '.';
260
				 * print anything beyond the string termination character. */
261
				ddd_pos[3] = '\0';
261
				for (int i = 0; *ddd_pos != '\0' && i < 3; i++, ddd_pos++) *ddd_pos = '.';
262
				*ddd_pos = '\0';
262
				return ddd_w;
263
				return ddd_w;
263
			}
264
			}
264
		} else {
265
		} else {

Return to bug 233929