From 67604ccae325c2224309f8a8854246f1ffa0832c Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Wed, 6 Feb 2013 01:10:41 +0200 Subject: print.c: show_dive_header() Reserve more space for strings Increase the size of "buffer" to 160 bytes. This was causing a problem with the first call to pango_layout_text(), where for the "bg_BG" locale, not enought space was allocated for the month name, the translation of "dive" and the other values. Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/print.c b/print.c index 06da43b1c..7ddb5b9b2 100644 --- a/print.c +++ b/print.c @@ -62,7 +62,7 @@ static void show_dive_header(struct dive *dive, cairo_t *cr, double w, int len, decimals, width, height, maxwidth, maxheight; PangoLayout *layout; struct tm tm; - char buffer[80], divenr[20], *people; + char buffer[160], divenr[20], *people; maxwidth = w * PANGO_SCALE; maxheight = h * PANGO_SCALE * 0.9; -- cgit v1.2.3-70-g09d2