[PATCH 3/3] Added some extra space for the "or" word when merging two strings
Lubomir I. Ivanov
neolit123 at gmail.com
Fri Dec 28 05:43:04 PST 2012
From: "Lubomir I. Ivanov" <neolit123 at gmail.com>
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 at gmail.com>
---
dive.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dive.c b/dive.c
index fbe7b4a..1c7e140 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);
--
1.7.11.msysgit.0
More information about the subsurface
mailing list