summaryrefslogtreecommitdiffstats
path: root/divelist.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-10-18 00:43:47 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-10-17 15:08:23 -0700
commit557a83576522b70709ee12a45077f40d321251a5 (patch)
tree2e425a21811bea2dc7aaa5649484ec0979546213 /divelist.c
parent9e0a9884b865615bbd82a21f2a08ec1e1bf30c4f (diff)
downloadsubsurface-557a83576522b70709ee12a45077f40d321251a5.tar.gz
Increase various stack buffer sizes to accommodate for locale strings
Example: For some strings such as the "Trip title" the buffer of 60 bytes was not enought for certain languages. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divelist.c')
-rw-r--r--divelist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/divelist.c b/divelist.c
index d78f3d6fa..f1c39e024 100644
--- a/divelist.c
+++ b/divelist.c
@@ -363,7 +363,8 @@ static void date_data_func(GtkTreeViewColumn *col,
int idx, nr;
struct tm tm;
timestamp_t when;
- char buffer[60];
+ /* this should be enought for most languages. if not increase the value. */
+ char buffer[256];
gtk_tree_model_get(model, iter, DIVE_INDEX, &idx, DIVE_DATE, &when, -1);
nr = gtk_tree_model_iter_n_children(model, iter);