summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2013-02-06 01:10:41 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-07 18:19:42 +1100
commit67604ccae325c2224309f8a8854246f1ffa0832c (patch)
tree2d00c11e9ec16b2443d15d16b7d89ff2837cbab5
parent30466b9abbbbbf215642f73cbae4fbed3d2b9975 (diff)
downloadsubsurface-67604ccae325c2224309f8a8854246f1ffa0832c.tar.gz
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>
-rw-r--r--print.c2
1 files changed, 1 insertions, 1 deletions
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;