summaryrefslogtreecommitdiffstats
path: root/dive.c
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2012-12-28 15:43:04 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-28 08:59:51 -0800
commitfc1bb0a32cc2b665fdac804c487232ff6ab8341a (patch)
tree727d0dd78f90af71f74355fe976b8fe207affcbc /dive.c
parent596b13e3108e7ac99ae438fda639543179e5f05f (diff)
downloadsubsurface-fc1bb0a32cc2b665fdac804c487232ff6ab8341a.tar.gz
Added some extra space for the "or" word when merging two strings
dive.c:merge_text(): When "or" is translated into other languages it may be longer than 2 letters, therefore there is a need for a slightly larger buffer to be reserved. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.c')
-rw-r--r--dive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dive.c b/dive.c
index fbe7b4a64..1c7e140d4 100644
--- a/dive.c
+++ b/dive.c
@@ -742,7 +742,7 @@ static char *merge_text(const char *a, const char *b)
return strdup(a);
if (!strcmp(a,b))
return strdup(a);
- res = malloc(strlen(a) + strlen(b) + 9);
+ res = malloc(strlen(a) + strlen(b) + 32);
if (!res)
return (char *)a;
sprintf(res, _("(%s) or (%s)"), a, b);