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

(-)openttd-0.5.2/gfx.c (-3 / +5 lines)
Lines 268-276 Link Here
268
			w += GetCharacterWidth(size, c);
268
			w += GetCharacterWidth(size, c);
269
269
270
			if (w >= maxw) {
270
			if (w >= maxw) {
271
				// string got too big... insert dotdotdot
271
				/* string got too big... insert dotdotdot, but make sure we do not
272
				ddd_pos[0] = ddd_pos[1] = ddd_pos[2] = '.';
272
				 * print anything beyond the string termination character. */
273
				ddd_pos[3] = '\0';
273
				int i;
274
				for (i = 0; *ddd_pos != '\0' && i < 3; i++, ddd_pos++) *ddd_pos = '.';
275
				*ddd_pos = '\0';
274
				return ddd_w;
276
				return ddd_w;
275
			}
277
			}
276
		} else {
278
		} else {

Return to bug 233929