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 <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Lubomir I. Ivanov 2013-02-06 01:10:41 +02:00 committed by Dirk Hohndel
parent 30466b9abb
commit 67604ccae3

View file

@ -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;