[vlc-devel] [PATCH] help: fix SIGSEGV

KO Myung-Hun komh78 at gmail.com
Mon Oct 9 15:18:16 CEST 2017


--help and -H causes SIGSEGV.
---
 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]);
                 }
-- 
2.13.3



More information about the vlc-devel mailing list