From fc1bb0a32cc2b665fdac804c487232ff6ab8341a Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Fri, 28 Dec 2012 15:43:04 +0200 Subject: 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 Signed-off-by: Dirk Hohndel --- dive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-70-g09d2