[vlc-commits] help: fix SIGSEGV

KO Myung-Hun git at videolan.org
Mon Oct 9 22:21:43 CEST 2017


vlc | branch: master | KO Myung-Hun <komh78 at gmail.com> | Mon Oct  9 22:18:16 2017 +0900| [da488a7751243fea0bd6de8846e9c13152330d40] | committer: Rémi Denis-Courmont

help: fix SIGSEGV

--help and -H causes SIGSEGV.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

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

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

diff --git a/src/config/help.c b/src/config/help.c
index 01044a4733..0f550cea79 100644
--- a/src/config/help.c
+++ b/src/config/help.c
@@ -451,7 +451,7 @@ static void print_item(const vlc_object_t *p_this, const module_t *m, const modu
                 {
                     if (i != 0)
                         strcat(typebuf, ", ");
-                    sprintf(typebuf + strlen(typebuf), "%li (%s)",
+                    sprintf(typebuf + strlen(typebuf), "%"PRIi64" (%s)",
                             pi_values[i],
                             ppsz_texts[i]);
                 }



More information about the vlc-commits mailing list