mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
596b13e310
commit
fc1bb0a32c
1 changed files with 1 additions and 1 deletions
2
dive.c
2
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue