diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2012-12-28 15:43:04 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-28 08:59:51 -0800 |
commit | fc1bb0a32cc2b665fdac804c487232ff6ab8341a (patch) | |
tree | 727d0dd78f90af71f74355fe976b8fe207affcbc /dive.c | |
parent | 596b13e3108e7ac99ae438fda639543179e5f05f (diff) | |
download | subsurface-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |