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>
This commit is contained in:
Lubomir I. Ivanov 2012-12-28 15:43:04 +02:00 committed by Dirk Hohndel
parent 596b13e310
commit fc1bb0a32c

2
dive.c
View file

@ -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);