mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-31 20:53:23 +00:00
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>
This commit is contained in:
parent
9e0a9884b8
commit
557a835765
2 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
|
|
4
info.c
4
info.c
|
@ -452,7 +452,7 @@ static void save_dive_info_changes(struct dive *dive, struct dive *master, struc
|
|||
static void dive_trip_widget(GtkWidget *box, dive_trip_t *trip, struct dive_info *info)
|
||||
{
|
||||
GtkWidget *hbox, *label;
|
||||
char buffer[80] = N_("Edit trip summary");
|
||||
char buffer[128] = N_("Edit trip summary");
|
||||
|
||||
label = gtk_label_new(_(buffer));
|
||||
gtk_box_pack_start(GTK_BOX(box), label, FALSE, TRUE, 0);
|
||||
|
@ -470,7 +470,7 @@ static void dive_trip_widget(GtkWidget *box, dive_trip_t *trip, struct dive_info
|
|||
static void dive_info_widget(GtkWidget *box, struct dive *dive, struct dive_info *info, gboolean multi)
|
||||
{
|
||||
GtkWidget *hbox, *label, *frame, *equipment;
|
||||
char buffer[80];
|
||||
char buffer[128];
|
||||
|
||||
snprintf(buffer, sizeof(buffer), "%s", _("Edit multiple dives"));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue