diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-10-18 00:43:47 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-10-17 15:08:23 -0700 |
commit | 557a83576522b70709ee12a45077f40d321251a5 (patch) | |
tree | 2e425a21811bea2dc7aaa5649484ec0979546213 /info.c | |
parent | 9e0a9884b865615bbd82a21f2a08ec1e1bf30c4f (diff) | |
download | subsurface-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 'info.c')
-rw-r--r-- | info.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")); |