[vlc-commits] help: fix string length with some locales (fixes #14479)

Rémi Denis-Courmont git at videolan.org
Thu Apr 30 19:29:30 CEST 2015


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 30 20:26:25 2015 +0300| [6462aa5cf26abe2c1813809d0174cd0c1b34c3e2] | committer: Rémi Denis-Courmont

help: fix string length with some locales (fixes #14479)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6462aa5cf26abe2c1813809d0174cd0c1b34c3e2
---

 src/config/help.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/config/help.c b/src/config/help.c
index 26f2e50..bcd16c9 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -410,7 +410,8 @@ static void print_item(const module_t *m, const module_config_t *item,
                 size_t len = 0;
 
                 for (unsigned i = 0; i < item->list_count; i++)
-                    len += strlen(item->list_text[i]) + 4 * sizeof (int) + 5;
+                    len += strlen(module_gettext(m, item->list_text[i]))
+                           + 4 * sizeof (int) + 5;
 
                 typebuf = malloc(len);
                 if (typebuf == NULL)



More information about the vlc-commits mailing list